Does lame encoding only work with 16-bit integers?

Nathan Rajlich <[email protected]>
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <CAN5MXof=_7u-iTNJHrsTXrG7OL7W5AqMU9zTU8adpZNj-zqfow@mail.gmail.com>
Hello all, so I'm in the middle of writing my node.js binding to
libmp3lame, and this are going great so far. I'm basically just
curious about the input that the lame encoder works with. I don't see
any "lame_set_bitdepth()" option or similar, and
"lame_encode_buffer()" accepts "shot int[]" (i.e. 16-bit). Is this the
only integer size that lame with work with? Perhaps I'm missing
something about the MPEG spec and perhaps that's the only valid bit
depth for MP3s, but I just wanted confirmation.

i.e. If I want to encode an 8-bit WAV into an MP3 do I need to rescale
manually before passing it to lame? Thanks in advance!

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.