From: bugtrack@alsa-project.org Subject: [ALSA - lib 0000892]: (snd_pcm_route_load_ttable) Invalid type for X - when using REAL numbers Date: Fri, 11 Feb 2005 22:25:20 +0100 Message-ID: <892526eb561d10781b778152e729f910@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 10439200 for ; Fri, 11 Feb 2005 22:25:20 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: slammer Assigned To: ====================================================================== Project: ALSA - lib Issue ID: 892 Category: general Reproducibility: have not tried Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 02-08-2005 15:06 CET Last Modified: 02-11-2005 22:25 CET ====================================================================== Summary: (snd_pcm_route_load_ttable) Invalid type for X - when using REAL numbers Description: According to the route plugin description at http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html ttable { schannels numbers) CCHANNEL { SCHANNEL REAL # route value (0.0 - 1.0) } the ttable values can be REAL. Although when defining such a simple pcm as: pcm.ch51dup { type route ttable { 0 { 0 1 4 1 2 0.5 3 0.5 } 1 { 1 1 5 1 2 0.5 3 0.5 } } slave.pcm { type hw card 0 device 0 } slave.channels 6 } and trying to use the pcm, I get an error: (snd_pcm_route_load_ttable) Invalid type for 2. (snd_pcm_route_load_ttable) Invalid type for 3. This i tried to define the table values in different manners e.g. ttable.0.3 0.5 (even used the exact sample from http://alsa.opensrc.org/index.php?page=FAQ028) but the result is the same. ====================================================================== ---------------------------------------------------------------------- slammer - 02-09-05 12:09 ---------------------------------------------------------------------- Allright got it. But I have to add a few words ;P I exported LC_NUMERIC=C and that was it. The pcm worked fine. But as far as I know in my country we use the character "," as a comma, therefore I have tried to use it in the value of ttable with my LC_NUMERIC set to pl_PL. ttable.0.4 0,5 ttable.1.4 0,5 ttable.0.5 0,5 ttable.1.5 0,5 And Bah! Alsa lib returned an error: (snd_config_load1) _toplevel_ : Unexpected char. So I think this is another reason why you shoud make config parsing locale independet. But if you want to leave (make?) it locale dependent you should make it work ;) P.S. Thanks for your work guys. ---------------------------------------------------------------------- slammer - 02-11-05 22:25 ---------------------------------------------------------------------- Could someone confirm, that this is a bug? Issue History Date Modified Username Field Change ====================================================================== 02-08-05 15:06 slammer New Issue 02-08-05 15:06 slammer Issue Monitored: slammer 02-08-05 15:09 slammer Note Added: 0003533 02-09-05 11:29 tiwai Note Added: 0003537 02-09-05 11:47 slammer Note Added: 0003542 02-09-05 11:52 tiwai Note Added: 0003543 02-09-05 12:09 slammer Note Added: 0003548 02-09-05 12:31 slammer Issue End Monitor: slammer 02-09-05 12:31 slammer Issue Monitored: slammer 02-11-05 22:25 slammer Note Added: 0003568 ====================================================================== ------------------------------------------------------- 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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click