Return-Path: Message-ID: <4589371F.2000507@palmsource.com> Date: Wed, 20 Dec 2006 14:14:07 +0100 From: =?ISO-8859-1?Q?Fr=E9d=E9ric_DALLEAU?= MIME-Version: 1.0 To: BlueZ development References: <44F6B7AE.1030209@jambit.com> <4582A310.60905@jambit.com> <4583A020.2040808@xmission.com> <4587D051.8080703@jambit.com> <458864F1.4070104@xmission.com> In-Reply-To: <458864F1.4070104@xmission.com> Content-Type: multipart/mixed; boundary="------------010600020703080308020104" Subject: Re: [Bluez-devel] How to use sbc.c ? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net This is a multi-part message in MIME format. --------------010600020703080308020104 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Brad, > >> The newest download of sbc.c from http://sbc.cvs.sourceforge.net/sbc/ >> under menu "CVS Browse" contains a simple bug, which lets the file >> compile, but crash on runtime: In function _sbc_analyze_eight() the >> array 't[8]' is referenced from t[1] to t[8], instead of t[0] to t[7]. >> > > fixed. thanks. > some values were missed so the sound is now larsenized ;) patch attached. BTW, I was looking for the tables specially Proto_4_40 and Proto_8_80 from a2dp specifications. I suspect they are stored in sbc_proto_8_80m0 and sbc_proto_8_80m1. The values are not the same that in the spec. Do you know why? -- Frederic Without the wind, the grass does not move. --------------010600020703080308020104 Content-Type: text/x-patch; name="sbc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sbc.patch" ? Doxyfile ? Makefile ? Makefile.in ? aclocal.m4 ? autom4te.cache ? config.guess ? config.h ? config.h.in ? config.log ? config.status ? config.sub ? configure ? debug ? depcomp ? install-sh ? libtool ? ltmain.sh ? missing ? sbc.kdevelop ? sbc.kdevelop.pcs ? sbc.kdevses ? sbc.pc ? stamp-h1 ? include/Makefile ? include/Makefile.in ? lib/.deps ? lib/.libs ? lib/Makefile ? lib/Makefile.in ? lib/libsbc.la ? lib/sbc.lo ? src/.deps ? src/.libs ? src/Makefile ? src/Makefile.in ? src/sbcinfo Index: lib/sbc.c =================================================================== RCS file: /cvsroot/sbc/sbc/lib/sbc.c,v retrieving revision 1.8 diff -u -r1.8 sbc.c --- lib/sbc.c 19 Dec 2006 22:13:41 -0000 1.8 +++ lib/sbc.c 20 Dec 2006 12:58:09 -0000 @@ -892,84 +892,84 @@ MULA(res, -_sbc_proto_8[21], in[75]); t[7] = SCALE8_STAGE1(res); - MUL(res, _anamatrix8[0], t[1]); - MULA(res, _anamatrix8[7], t[2]); - MULA(res, _anamatrix8[2], t[3]); - MULA(res, _anamatrix8[3], t[4]); - MULA(res, _anamatrix8[6], t[5]); - MULA(res, _anamatrix8[4], t[6]); - MULA(res, _anamatrix8[1], t[7]); - MULA(res, _anamatrix8[5], t[8]); + MUL(res, _anamatrix8[0], t[0]); + MULA(res, _anamatrix8[7], t[1]); + MULA(res, _anamatrix8[2], t[2]); + MULA(res, _anamatrix8[3], t[3]); + MULA(res, _anamatrix8[6], t[4]); + MULA(res, _anamatrix8[4], t[5]); + MULA(res, _anamatrix8[1], t[6]); + MULA(res, _anamatrix8[5], t[7]); out[0] = SCALE8_STAGE2(res); - MUL(res, _anamatrix8[1], t[1]); - MULA(res, _anamatrix8[7], t[2]); - MULA(res, _anamatrix8[3], t[3]); - MULA(res, -_anamatrix8[5], t[4]); - MULA(res, -_anamatrix8[6], t[5]); - MULA(res, -_anamatrix8[2], t[6]); - MULA(res, -_anamatrix8[0], t[7]); - MULA(res, -_anamatrix8[4], t[8]); + MUL(res, _anamatrix8[1], t[0]); + MULA(res, _anamatrix8[7], t[1]); + MULA(res, _anamatrix8[3], t[2]); + MULA(res, -_anamatrix8[5], t[3]); + MULA(res, -_anamatrix8[6], t[4]); + MULA(res, -_anamatrix8[2], t[5]); + MULA(res, -_anamatrix8[0], t[6]); + MULA(res, -_anamatrix8[4], t[7]); out[1] = SCALE8_STAGE2(res); - MUL(res, -_anamatrix8[1], t[1]); - MULA(res, _anamatrix8[7], t[2]); - MULA(res, _anamatrix8[4], t[3]); - MULA(res, -_anamatrix8[2], t[4]); - MULA(res, -_anamatrix8[6], t[5]); - MULA(res, _anamatrix8[5], t[6]); - MULA(res, _anamatrix8[0], t[7]); - MULA(res, _anamatrix8[3], t[8]); + MUL(res, -_anamatrix8[1], t[0]); + MULA(res, _anamatrix8[7], t[1]); + MULA(res, _anamatrix8[4], t[2]); + MULA(res, -_anamatrix8[2], t[3]); + MULA(res, -_anamatrix8[6], t[4]); + MULA(res, _anamatrix8[5], t[5]); + MULA(res, _anamatrix8[0], t[6]); + MULA(res, _anamatrix8[3], t[7]); out[2] = SCALE8_STAGE2(res); - MUL(res, -_anamatrix8[0], t[1]); - MULA(res, _anamatrix8[7], t[2]); - MULA(res, _anamatrix8[5], t[3]); - MULA(res, -_anamatrix8[4], t[4]); - MULA(res, _anamatrix8[6], t[5]); - MULA(res, _anamatrix8[3], t[6]); - MULA(res, -_anamatrix8[1], t[7]); - MULA(res, -_anamatrix8[2], t[8]); + MUL(res, -_anamatrix8[0], t[0]); + MULA(res, _anamatrix8[7], t[1]); + MULA(res, _anamatrix8[5], t[2]); + MULA(res, -_anamatrix8[4], t[3]); + MULA(res, _anamatrix8[6], t[4]); + MULA(res, _anamatrix8[3], t[5]); + MULA(res, -_anamatrix8[1], t[6]); + MULA(res, -_anamatrix8[2], t[7]); out[3] = SCALE8_STAGE2(res); - MUL(res, -_anamatrix8[0], t[1]); - MULA(res, _anamatrix8[7], t[2]); - MULA(res, -_anamatrix8[5], t[3]); - MULA(res, _anamatrix8[4], t[4]); - MULA(res, _anamatrix8[6], t[5]); - MULA(res, -_anamatrix8[3], t[6]); - MULA(res, -_anamatrix8[1], t[7]); - MULA(res, _anamatrix8[2], t[8]); + MUL(res, -_anamatrix8[0], t[0]); + MULA(res, _anamatrix8[7], t[1]); + MULA(res, -_anamatrix8[5], t[2]); + MULA(res, _anamatrix8[4], t[3]); + MULA(res, _anamatrix8[6], t[4]); + MULA(res, -_anamatrix8[3], t[5]); + MULA(res, -_anamatrix8[1], t[6]); + MULA(res, _anamatrix8[2], t[7]); out[4] = SCALE8_STAGE2(res); - MUL(res, -_anamatrix8[1], t[1]); - MULA(res, _anamatrix8[7], t[2]); - MULA(res, -_anamatrix8[4], t[3]); - MULA(res, _anamatrix8[2], t[4]); - MULA(res, -_anamatrix8[6], t[5]); - MULA(res, -_anamatrix8[5], t[6]); - MULA(res, _anamatrix8[0], t[7]); - MULA(res, -_anamatrix8[3], t[8]); + MUL(res, -_anamatrix8[1], t[0]); + MULA(res, _anamatrix8[7], t[1]); + MULA(res, -_anamatrix8[4], t[2]); + MULA(res, _anamatrix8[2], t[3]); + MULA(res, -_anamatrix8[6], t[4]); + MULA(res, -_anamatrix8[5], t[5]); + MULA(res, _anamatrix8[0], t[6]); + MULA(res, -_anamatrix8[3], t[7]); out[5] = SCALE8_STAGE2(res); - MUL(res, _anamatrix8[1], t[1]); - MULA(res, _anamatrix8[7], t[2]); - MULA(res, -_anamatrix8[3], t[3]); - MULA(res, _anamatrix8[5], t[4]); - MULA(res, -_anamatrix8[6], t[5]); - MULA(res, _anamatrix8[2], t[6]); - MULA(res, -_anamatrix8[0], t[7]); - MULA(res, _anamatrix8[4], t[8]); + MUL(res, _anamatrix8[1], t[0]); + MULA(res, _anamatrix8[7], t[1]); + MULA(res, -_anamatrix8[3], t[2]); + MULA(res, _anamatrix8[5], t[3]); + MULA(res, -_anamatrix8[6], t[4]); + MULA(res, _anamatrix8[2], t[5]); + MULA(res, -_anamatrix8[0], t[6]); + MULA(res, _anamatrix8[4], t[7]); out[6] = SCALE8_STAGE2(res); - MUL(res, _anamatrix8[0], t[1]); - MULA(res, _anamatrix8[7], t[2]); - MULA(res, -_anamatrix8[2], t[3]); - MULA(res, -_anamatrix8[3], t[4]); - MULA(res, _anamatrix8[6], t[5]); - MULA(res, -_anamatrix8[4], t[6]); - MULA(res, _anamatrix8[1], t[7]); - MULA(res, -_anamatrix8[5], t[8]); + MUL(res, _anamatrix8[0], t[0]); + MULA(res, _anamatrix8[7], t[1]); + MULA(res, -_anamatrix8[2], t[2]); + MULA(res, -_anamatrix8[3], t[3]); + MULA(res, _anamatrix8[6], t[4]); + MULA(res, -_anamatrix8[4], t[5]); + MULA(res, _anamatrix8[1], t[6]); + MULA(res, -_anamatrix8[5], t[7]); out[7] = SCALE8_STAGE2(res); } --------------010600020703080308020104 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --------------010600020703080308020104 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --------------010600020703080308020104--