Sergey Kolosov wrote:
> How can use function getenv from alsa config file? I have created .asoundrc
> with next contents:
> pcm.!default {
>         type hw
>         card 0
>         device
>                 {
>                         @func igetenv
>                                 vars [ MY_TEST_ALSA_DEVICE ]
>                                 default { 2 }
>                 }
> }

This "default" key needs a simple value instead of a node.  The
"igetenv" call in alsa.conf uses braces because the call to "refer"
needs a node.

(Function calls replace their entire node with the function's return
value.)

> But alsa say,what my configuration is wrong
> [EMAIL PROTECTED]:~$ MY_TEST_ALSA_DEVICE=2 aplay test.wav
> ALSA lib conf.c:1592:(snd_config_load1) _toplevel_:12:0:Unexpected char

Which character is this?


Regards,
Clemens


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to