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 }
}
}
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
ALSA lib conf.c:2837:(snd_config_hook_load) /home/sergey/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:2700:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:3066:(snd_config_update_r) hooks failed, removing configuration
aplay: main:544: audio open error: Invalid argument
[EMAIL PROTECTED]:~$
How I can fix it?
- [Alsa-user] using enviroment variable (getenv function) fr... Sergey Kolosov
- Re: [Alsa-user] using enviroment variable (getenv fun... Clemens Ladisch
- Re: [Alsa-user] using enviroment variable (getenv... Sergey Kolosov