Re: [Bluez-devel] AVDTP socket?

Marcel Holtmann
2004-11-22T03:18:35Z

Hi Henryk,

> > > I have problems synthesizing the PCM audio samples but can parse all
> > > of the example SBC streams just fine.
> >
> > Ok, catched it. I reimplemented the SBC analyzer and synthesizer in
> > Octave which is easier to play around with and found that my C
> > synthesizer was working fine - on wrong subband samples. The bitstream
> > unpacker had a bug which made it shift the incoming bits once to often.
> >
> > So sbc-test from the CVS is now able to decode 4 and 8 subband mono SBC
> > files (there's something wrong with stereo, I'll look into that
> > shortly).
>
> I was only able to decode 01, 03, 07 and 09. All other mono test files
> are failing. However good work, because these four sound perfect.

I tested again all example files before you moved the bits array
calculation into an own function. All of them sounded good.

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.

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.

We should start a new thread and discuss a SBC library.

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.