PulseAudio  1.1
format.h
Go to the documentation of this file.
1 #ifndef fooformathfoo
2 #define fooformathfoo
3 
4 /***
5  This file is part of PulseAudio.
6 
7  Copyright 2011 Intel Corporation
8  Copyright 2011 Collabora Multimedia
9  Copyright 2011 Arun Raghavan <arun.raghavan@collabora.co.uk>
10 
11  PulseAudio is free software; you can redistribute it and/or modify
12  it under the terms of the GNU Lesser General Public License as published
13  by the Free Software Foundation; either version 2.1 of the License,
14  or (at your option) any later version.
15 
16  PulseAudio is distributed in the hope that it will be useful, but
17  WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20 
21  You should have received a copy of the GNU Lesser General Public License
22  along with PulseAudio; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24  USA.
25 ***/
26 
27 #include <pulse/cdecl.h>
28 #include <pulse/gccmacro.h>
29 #include <pulse/proplist.h>
30 #include <pulse/sample.h>
31 #include <pulse/channelmap.h>
32 
33 PA_C_DECL_BEGIN
34 
36 typedef enum pa_encoding {
61 
64 
66 pa_encoding_t pa_encoding_from_string(const char *encoding);
67 
69 typedef struct pa_format_info {
76 
79 
82 
85 
88 
91 
100 
106 #define PA_FORMAT_INFO_SNPRINT_MAX 256
107 
109 char *pa_format_info_snprint(char *s, size_t l, const pa_format_info *f);
110 
114 
116 void pa_format_info_set_prop_int(pa_format_info *f, const char *key, int value);
118 void pa_format_info_set_prop_int_array(pa_format_info *f, const char *key, const int *values, int n_values);
120 void pa_format_info_set_prop_int_range(pa_format_info *f, const char *key, int min, int max);
122 void pa_format_info_set_prop_string(pa_format_info *f, const char *key, const char *value);
124 void pa_format_info_set_prop_string_array(pa_format_info *f, const char *key, const char **values, int n_values);
125 
129 void pa_format_info_set_rate(pa_format_info *f, int rate);
131 void pa_format_info_set_channels(pa_format_info *f, int channels);
134 
135 PA_C_DECL_END
136 
137 #endif