summaryrefslogtreecommitdiffstats
path: root/src/pulse/proplist.h
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2011-02-28 10:53:41 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2011-05-02 10:17:20 +0530
commit3767c9c4e8107a3e78f387466b45384d64644d94 (patch)
tree8e448f8fd687a3dbd25beb83b296b8828f2088f7 /src/pulse/proplist.h
parentc3839c76377ea7662f29364ae66718e8ac6233af (diff)
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.
Diffstat (limited to 'src/pulse/proplist.h')
-rw-r--r--src/pulse/proplist.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h
index 7d026997..a641f248 100644
--- a/src/pulse/proplist.h
+++ b/src/pulse/proplist.h
@@ -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;