Re: [Bluez-devel] SBC packer done, kind of

Marcel Holtmann
2004-11-23T21:03:29Z

Hi Henryk,

> > However it does not work as expected, but if you accept some noise you
> > will get some results. I used these commands for testing:
>
> Yes, the values sbclib.c puts into frame.pcm_sample don't look right.

this actually reminds me again that I am not an audio expert. Can you
fix it easily?

> If you don't have any objections I'll rename sbcdec as sbcplay (that's
> more descriptive of what it does) and try to come up with an sbcenc and
> sbcdec based on the audio file library
> http://freshmeat.net/projects/audiofilelibrary

I like to keep them as sbcenc and sbcdec, because this is what they are
doing. The output to a soundcard is a nice extra feature of sbcdec and
if sbcenc can capture from a soundcard this will be also great. To have
some nice and handy names I think sbcplay and maybe sbcrec should be
symlinks to sbcdec and sbcenc. This is how this is normally done and if
we share most of the code it is also no problem to be sbcenc and sbcdec
the same program.

The choose for libao was, because mpg321 uses it and its API is very
easy. The possibility for writing to a file and playing on a soundcard
with the same set of functions was also a plus. However I don't know
what's the best audio library nowadays. So any comments about that are
welcome.