Re: [Bluez-devel] AVDTP socket?

Marcel Holtmann
2004-11-22T13:28:22Z

Hi Henryk,

> > With the latest code you still overwrite the stack at some point,
> > because the pcm_sample[][] array is only 2x128 and you return 2x256
> > samples from sbc_synthesize_audio() function.
>
> Ahh, thanks. I broke it when I moved the superfluous (I thought)
> assignment of current_sample=0 out of the channel for loop. Should work
> now again.
>
> > I also started to write a simple SBC play program using the libao. It
> > works actually quite good linking your sbc.o file, but unfortunately
> > with 2 channel files the left channel is silent.
>
> If that was a result of the abovementioned bug it should work now again.

yes. Everything works now like it should.

> > We should start a new thread and discuss a SBC library.
>
> Sure. I should have the bitstream packer working sometime soon and will
> then post again.

I re-arranged some stuff in the CVS again and the sbc directory is now
also using autoconf/automake. However the sbc.h is now sbc_internal.h
and the new sbc.h is the header file of the new SBC library. The sbcdec
program is using libao to play the SBC file on your soundcard. However
the libao library can also write the data to a file in AU or WAV format,
but this is not implemented at the moment.

Can't wait to write the sbcenc program. Keep on with the good work.

And we need to add a clear license statement to the source files. I like
to put the SBC library under LGPL and the programs under GPL. Is this
fine with you?

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.