format: Add correct sample spec conversion for E-AC3
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 9 Apr 2011 04:06:25 +0000 (09:36 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Sun, 15 May 2011 04:39:35 +0000 (10:09 +0530)
commitd1f13fa781ec69e4dbed000902123d255baaba5f
treee30fa3e365bdc9b61b7d6ce4486f982c9b888959
parent13a33abf45f31417076f283ca7da9d9f74892286
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.
src/pulse/format.c