[PATCH] sndfile-util: fix format for 24bit depth wav files

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

 



On Thu, 2013-10-10 at 20:01 -0700, Kiran Krishnappa wrote:
> Hi,
> 
> I tested both paplay and parecord for 24bit files. Looks to be working fine
> now.

How can it be working fine, if the read/write functions don't exist for
24-bit files?

I looked at the code, and it seems that if the read/write functions
haven't been set, pacat treats the files as raw PCM data. This is not
good, because the user requested wav files, not raw files. If wav files
are treated as raw files, then the wav header will be played to the
speakers, and when recording, the wav header will be missing from the
output file. If getting the read/write function fails, pacat should
print an error message and exit.

-- 
Tanu



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

  Powered by Linux