Changeset 3419:9e791c7ba5c3 in roaraudio
- Timestamp:
- 02/11/10 20:01:03 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/channelmap.c
r3418 r3419 39 39 #include <libroarpulse/libroarpulse.h> 40 40 41 /** Initialize the specified channel map and return a pointer to it */ 42 pa_channel_map* pa_channel_map_init(pa_channel_map *m); 43 44 /** Initialize the specified channel map for monoaural audio and return a pointer to it */ 45 pa_channel_map* pa_channel_map_init_mono(pa_channel_map *m); 46 47 /** Initialize the specified channel map for stereophonic audio and return a pointer to it */ 48 pa_channel_map* pa_channel_map_init_stereo(pa_channel_map *m); 49 50 /** Initialize the specified channel map for the specified number 51 * of channels using default labels and return a pointer to it. */ 52 pa_channel_map* pa_channel_map_init_auto(pa_channel_map *m, unsigned channels, pa_channel_map_def_t def); 53 54 /** Return a text label for the specified channel position */ 55 const char* pa_channel_position_to_string(pa_channel_position_t pos); 56 57 /** The maximum length of strings returned by pa_channel_map_snprint() */ 58 #define PA_CHANNEL_MAP_SNPRINT_MAX 336 59 60 /** Make a humand readable string from the specified channel map */ 61 char* pa_channel_map_snprint(char *s, size_t l, const pa_channel_map *map); 62 63 /** Parse a channel position list into a channel map structure. \since 0.8.1 */ 64 pa_channel_map *pa_channel_map_parse(pa_channel_map *map, const char *s); 65 66 /** Compare two channel maps. Return 1 if both match. */ 67 int pa_channel_map_equal(const pa_channel_map *a, const pa_channel_map *b); 68 69 /** Return non-zero of the specified channel map is considered valid */ 70 int pa_channel_map_valid(const pa_channel_map *map); 71 41 72 //ll
Note: See TracChangeset
for help on using the changeset viewer.