[music-dsp] 24 / 32 bits file
Erik de Castro Lopo
erikd-music-dsp at mega-nerd.com
Sat Feb 14 15:22:14 EST 2004
On Sat, 14 Feb 2004 17:18:41 +0100
"Infos - Bien Entendu" <infos at bienentendu.fr> wrote:
> i created some software where i can save sounds on different format
> my sounds are internally on float format
> and i want to be able to save it in 16 or 24 or 32 or 32 float format
> i've done it on AIFF but these files are not directly compatible with the
> quicktime player as they are too loud or too soft
> i couldn't find any reference in the apple developper documentation about
> the level adjustment when doing a bit rate conversion for aiff files.
Why not use a proven library for doing this? Personaly, I recommend
libsndfile :
http://www.mega-nerd.com/libsndfile/
which will allow you to save the file as AIFF, WAV or any of about 10
other formats. It allows you to handle your data as floats, and specify
that the output file should be 24 bit PCM (or any of a number of other
subformats) and the library automatically does the conversion on the
fly.
libsndfile is release under the GNU LGPL which means that you can use it
with Free Software, Open Source, proprietary, shareware or other closed
source applications as long as libsndfile is used as a dynamically loaded
library. With applications released under the GNU GPL you can also use
libsndfile statically linked to your application.
Erik (who has spent too much time working on that thing to want to see
other wasing their time writing AIFF or WAV handling code).
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam at mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"I ran it on my DeathStation 9000 and demons flew out of my nose." --Kaz
More information about the music-dsp
mailing list