[pulseaudio-discuss] [PATCH]sndfile-util : Correct wav file creation/writing for 24-32 and 24 bits PCM sample formats

Colin Guthrie gmane at colin.guthr.ie
Tue Feb 22 02:27:13 PST 2011

'Twas brillig, and Becker, VincentX at 08/02/11 14:33 did gyre and gimble:
> This patch corrects format values that are set for specific sample
> formats PA_SAMPLE_S24NE and PA_SAMPLE_S24_32NE, for wav file creation
> and writing. Also PA_SAMPLE_S24_32NE was not fully supported in
> sndfile-util.c. For the unusual format PA_SAMPLE_S24_32NE, sfi format
> has to be SF_FORMAT_PCM_32 as the audio is coded on 32 bits. In this
> case, one has to shift 8 bits on the left 24 bits in order to fit
> into the MSB audio data on 32 bits.

Thanks. Applied!



Colin Guthrie

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

More information about the pulseaudio-discuss mailing list