| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Channel map handling in the extended API was broken. Thanks for Milos_SD
for pointing this out on IRC.
|
|
|
|
|
| |
Adds functions to set sample format, rate, channels and channel map on a
format to make life easier for users of the API.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This allows clients to perform checks between formats as well.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
Handles bad format input more gracefully and returns an error instead.
|
| |
|
|
|
|
|
| |
The properties will be used by clients to set the sample format,
sampling rate, etc. The functions will be used internally.
|
|
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.
|