core-format: Add pa_format_info_get_sample_format()

This commit is contained in:
Tanu Kaskinen 2013-11-25 16:15:54 +02:00
parent d2c9b46aca
commit eae16f41a4
3 changed files with 33 additions and 7 deletions

View file

@ -22,6 +22,11 @@
#include <pulse/format.h>
/* Gets the sample format stored in the format info. Returns a negative error
* code on failure. If the sample format property is not set at all, returns
* -PA_ERR_NOENTITY. */
int pa_format_info_get_sample_format(pa_format_info *f, pa_sample_format_t *sf);
/* For compressed formats. Converts the format info into a sample spec and a
* channel map that an ALSA device can use as its configuration parameters when
* playing back the compressed data. That is, the returned sample spec doesn't