summaryrefslogtreecommitdiffstats
path: root/src/pulse/format.c
Commit message (Collapse)AuthorAgeFilesLines
* format: Fix channel map handlingArun Raghavan2011-05-201-6/+7
| | | | | Channel map handling in the extended API was broken. Thanks for Milos_SD for pointing this out on IRC.
* format: Add some convenience API for setting propertiesArun Raghavan2011-05-151-3/+23
| | | | | Adds functions to set sample format, rate, channels and channel map on a format to make life easier for users of the API.
* format: Extend properties to handle lists/rangesArun Raghavan2011-05-151-20/+250
| | | | | | | | | | | | | This replaces the simple string used by pa_format_info's proplist with a JSON string (accessed via new API only). This allows us to express lists and ranges more cleanly, and embed type information for future extensibility. We use json-c for JSON parsing. This is a lightweight depdency (32 KB on my system) and avoids the hassle of having to reinvent a JSON parser. Also included is a test which verifies functionality and is valgrind-clean.
* format: Add correct sample spec conversion for E-AC3Arun Raghavan2011-05-151-0/+3
| | | | | | | IEC61937-encapsulated E-AC3 frames contain 6 audio blocks per substream, which corresponds to 1536 samples contained a 24576-byte frame. To cope with this, we maintain the s16le stereo sample spec, but quadruple the sample rate so that the conversion remains accurate.
* format: Export pa_format_info_is_compatible in APIArun Raghavan2011-05-151-1/+1
| | | | This allows clients to perform checks between formats as well.
* format: Add a type for DTSArun Raghavan2011-05-021-0/+1
|
* format: Add some convenience functions for printingArun Raghavan2011-05-021-0/+36
|
* format: Const-ify some parametersArun Raghavan2011-05-021-2/+2
|
* format: Avoid some code duplicationArun Raghavan2011-05-021-0/+4
| | | | | | We frequently need to free an idxset containing pa_format_infos, so define an internal free function that can be used directly with this (instead of defining it once-per-file).
* sink-input: Don't assert on bad formatsArun Raghavan2011-05-021-13/+17
| | | | Handles bad format input more gracefully and returns an error instead.
* format: Add convenience API to check if a format is PCM or notArun Raghavan2011-05-021-0/+4
|
* format: Add some properties and internal APIArun Raghavan2011-05-021-0/+87
| | | | | The properties will be used by clients to set the sample format, sampling rate, etc. The functions will be used internally.
* core: Add a pa_format_info structureArun Raghavan2011-05-021-0/+71
This will be used to represent the format of data provided by the client for both compressed and PCM formats in a new extended API.