mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
format: Add some properties and internal API
The properties will be used by clients to set the sample format, sampling rate, etc. The functions will be used internally.
This commit is contained in:
parent
c3839c7637
commit
3767c9c4e8
3 changed files with 104 additions and 0 deletions
|
|
@ -254,6 +254,18 @@ PA_C_DECL_BEGIN
|
|||
/** For modules: a version string for the module. e.g. "0.9.15" */
|
||||
#define PA_PROP_MODULE_VERSION "module.version"
|
||||
|
||||
/** For PCM formats: the sample format used as returned by pa_sample_format_to_string() \since 1.0 */
|
||||
#define PA_PROP_FORMAT_SAMPLE_FORMAT "format.sample_format"
|
||||
|
||||
/** For all formats: the sample rate (unsigned integer) \since 1.0 */
|
||||
#define PA_PROP_FORMAT_RATE "format.rate"
|
||||
|
||||
/** For all formats: the number of channels (unsigned integer) \since 1.0 */
|
||||
#define PA_PROP_FORMAT_CHANNELS "format.channels"
|
||||
|
||||
/** For PCM formats: the channel map of the stream as returned by pa_channel_map_snprint() \since 1.0 */
|
||||
#define PA_PROP_FORMAT_CHANNEL_MAP "format.channel_map"
|
||||
|
||||
/** A property list object. Basically a dictionary with ASCII strings
|
||||
* as keys and arbitrary data as values. \since 0.9.11 */
|
||||
typedef struct pa_proplist pa_proplist;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue