[LAD] audio conversion functions

Paul Davis paul at linuxaudiosystems.com
Wed Jul 18 22:33:37 UTC 2007


On Wed, 2007-07-18 at 14:55 -0700, Craig Hoedebeck wrote:
> I am relatively new to audio programming, but I have a task that
> requires converting between various audio formats:
> 
> unsigned 16 bit linear to signed 16 bit linear
> u_law to signed 16 bit linear
> a_law to signed 16 bit linear
> unsigned 8 bit linear to signed 16 bit 
> signed 8 bit linear to signed 16 bit
> 
> Anyone know what the conversion functions for these would look like?
> Or even what a good reference is where I can find these?  I have been
> googling around for about an hour and I have come up empty.

if the data is in a file, just use libsndfile.





More information about the Linux-audio-dev mailing list