Arun Raghavan
d1f13fa781
format: Add correct sample spec conversion for E-AC3
...
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.
2011-05-15 10:09:35 +05:30
Arun Raghavan
13a33abf45
format: Export pa_format_info_is_compatible in API
...
This allows clients to perform checks between formats as well.
2011-05-15 10:09:35 +05:30
Arun Raghavan
9a39a3df10
format: Add a type for DTS
2011-05-02 11:55:39 +05:30
Arun Raghavan
8631f4e2c4
format: Add some convenience functions for printing
2011-05-02 11:55:38 +05:30
Arun Raghavan
a3a0042144
format: Const-ify some parameters
2011-05-02 11:55:38 +05:30
Arun Raghavan
e418e49ecb
format: Avoid some code duplication
...
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).
2011-05-02 11:54:48 +05:30
Arun Raghavan
13229fb39e
sink-input: Don't assert on bad formats
...
Handles bad format input more gracefully and returns an error instead.
2011-05-02 11:54:48 +05:30
Arun Raghavan
54c391e6db
format: Add convenience API to check if a format is PCM or not
2011-05-02 11:54:47 +05:30
Arun Raghavan
3767c9c4e8
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.
2011-05-02 10:17:20 +05:30
Arun Raghavan
c3839c7637
core: Add a pa_format_info structure
...
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.
2011-05-02 10:17:20 +05:30