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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



'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!

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

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/]




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux