public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] SBC code cleanup
@ 2004-11-27 21:49 Marcel Holtmann
  2004-11-28  4:32 ` Henryk Plötz
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2004-11-27 21:49 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Henryk,

I started with some cleaning up of the SBC code to better fit into
current coding conventions. My focus was on the sbc_synthesize_audio()
and sbc_analyze_audio() functions. While checking them and looking at
the code I think we also need this patch:

--- sbc/sbc.c   27 Nov 2004 21:39:38 -0000      1.23
+++ sbc/sbc.c   27 Nov 2004 21:46:01 -0000
@@ -523,7 +523,7 @@
        int i, j, k;
 
        /* Input 8 New Subband Samples */
-       for (i = 0; i < 7; i++)
+       for (i = 0; i < 8; i++)
                state->S[ch][i] = frame->sb_sample[blk][ch][i];
 
        /* Shifting */

Am I right, or do I miss something?

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. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] SBC code cleanup
  2004-11-27 21:49 [Bluez-devel] SBC code cleanup Marcel Holtmann
@ 2004-11-28  4:32 ` Henryk Plötz
  2004-11-28  5:47   ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Henryk Plötz @ 2004-11-28  4:32 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

Moin,

Am Sat, 27 Nov 2004 22:49:25 +0100 schrieb Marcel Holtmann:

> I started with some cleaning up of the SBC code to better fit into
> current coding conventions. My focus was on the sbc_synthesize_audio()
> and sbc_analyze_audio() functions. 

I saw that and you're doing a good job there. I also saw that you
registered sf.net/projects/sbc.

> -       for (i = 0; i < 7; i++)
> +       for (i = 0; i < 8; i++)

> Am I right, or do I miss something?

No, you're absolutely right. Actually the decoder is broken currently
(I swear it worked when I checked in rev 1.8 of sbclib.c). I'm
investigating...

-- 
Henryk Plötz
Grüße aus Berlin
~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~
~ Help Microsoft fight software piracy: Give Linux to a friend today! ~

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] SBC code cleanup
  2004-11-28  4:32 ` Henryk Plötz
@ 2004-11-28  5:47   ` Marcel Holtmann
  2004-11-28 17:23     ` Henryk Plötz
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2004-11-28  5:47 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Henryk,

> > I started with some cleaning up of the SBC code to better fit into
> > current coding conventions. My focus was on the sbc_synthesize_audio()
> > and sbc_analyze_audio() functions. 
> 
> I saw that and you're doing a good job there.

I hope that we get no performance problems with this cleanups. This all
now depends on how good the compiler optimizes and predict stuff. I
think that we need some regression tests.

>  I also saw that you
> registered sf.net/projects/sbc.

Yes, it is true. I registered the SBC library as a standalone project at
Sourceforge. Right now this is still in the setup phase, but I hope that
we can move the code over very soon. Actually this was the reason why I
tried to cleanup some things.

> > -       for (i = 0; i < 7; i++)
> > +       for (i = 0; i < 8; i++)
> 
> > Am I right, or do I miss something?
> 
> No, you're absolutely right. Actually the decoder is broken currently
> (I swear it worked when I checked in rev 1.8 of sbclib.c). I'm
> investigating...

The decoder is working for me. I tried it before I checked in my
changes.

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. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] SBC code cleanup
  2004-11-28  5:47   ` Marcel Holtmann
@ 2004-11-28 17:23     ` Henryk Plötz
  0 siblings, 0 replies; 4+ messages in thread
From: Henryk Plötz @ 2004-11-28 17:23 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

Moin,

Am Sun, 28 Nov 2004 06:47:27 +0100 schrieb Marcel Holtmann:

> I hope that we get no performance problems with this cleanups.

I planned to test that anyways.

> The decoder is working for me. I tried it before I checked in my
> changes.

Hmm, you're right. I checked out the old version that I knew was working
and as that didn't work either (while sbctest _did_ work) I concluded
that simply the sound output was broken.

Hmm, somehow it stops working after some time (that is: I only get noise
on the speakers) and if I simply play any file in xmms (a second or so
will suffice) it works again ... for a couple of seconds.

-- 
Henryk Plötz
Grüße aus Berlin
~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~
~ Help Microsoft fight software piracy: Give Linux to a friend today! ~

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-28 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-27 21:49 [Bluez-devel] SBC code cleanup Marcel Holtmann
2004-11-28  4:32 ` Henryk Plötz
2004-11-28  5:47   ` Marcel Holtmann
2004-11-28 17:23     ` Henryk Plötz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox