[Nix-dev] Is ALSA_PLUGINS_DIR being honoured?
Carles Pagès
page.lists at gmail.com
Sat Feb 23 10:21:58 CET 2013
Debugging a bit, I found out that ALSA_PLUGIN_DIRS is only used in some
code paths. By setting 'lib' in asound.conf, the plugin dirs var is
ignored, but I found in the archlinux wiki an alternative configuration to
make alsa use pa:
pcm.pulse {
type pulse
}
By using this instead of the pcm_type.pulse {lib...}, and pointing
ALSA_PLUGIN_DIRS to the proper path, everything works and this can easily
be overriden by i686 apps. Can we use this configuration then?
I looked at the value set for ALSA_PLUGIN_DIRS, which points to the current
profiles lib dirs. I'm not sure, though, why the alsa plugins are not
symlinked in there or if they should be at all. Anyone?
2013/2/22 Carles Pagès <page.lists at gmail.com>
> Hi,
>
> Trying to make the flashplayer plugin work in steam, I discovered all the
> tricks that we have in place for sound to work in nixos. However, I'm not
> sure the patch we have for ALSA_PLUGINS_DIR is working.
>
> I have pulseaudio enabled in nixos, and I saw that packages that don't
> understand pa get routed to it anyway through the config in
> /etc/asound.conf. The problem comes when the app in question is x86 and my
> system is x86_64, as the plugins obviously fail to load (this is why skype
> sound was failing without pa enabled).
>
> To cut a long story short, I tried hand-editing /etc/asound.conf to remove
> the absolute path, and only leave the plugin.so name there. I then did some
> tests with mplayer which lets me easily choose the audio output, by setting
> ALSA_PLUGINS_DIR pointing to alsaplugins path. Result: no sound. I did an
> strace and the plugins are not searched in there. I did a quick test adding
> the alsaplugins path to LD_LIBRARY_PATH, and sound was working again.
>
> So, did I get anything wrong or is the ALSA_PLUGINS_DIR trick not working?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130223/3d70d63b/attachment.html
More information about the nix-dev
mailing list