Hi,

I assume you mean snd_ctl_open. Here is a little example reference on how some C++ classes do it :

https://github.com/flatmax/gtkiostream/blob/master/include/ALSA/Control.H#L95


There are also a swathe of other classes for playback, capture, the mixer, etc ...

https://github.com/flatmax/gtkiostream/tree/master/include/ALSA


In your particular situation here, I would find libasound_module_conf_pulse.so on your system and then try to work out why alsa isn't finding it ... some people will symlink it to where alsa is looking. Other ideas are to reinstall alsa-lib and alsa-utils.


What distro are you using ?


On 7/5/23 09:19, ollie razdow wrote:
I'm a bit of a noob to linux audio programming, but I'm stuck with alsa lib and wondering if someone could help.
When I use the function snd_dtl_open I get the error:
Cannot open shared library libasound_module_conf_pulse.so (/usr/lib/alsa-lib/libasound_module_conf_pulse.so The library exists in /usr/lib/x86_64-linux-gnu/alsa-lib/l, but not /usr/lib/alsa-lib which doesn't exist. I suppose I could create a symlinked folder, but I'm wondering why alsa looks in that directory and what I can do get it working correctly?

Thanks for any advice.

_______________________________________________
Linux-audio-dev mailing list -- linux-audio-dev@lists.linuxaudio.org
To unsubscribe send an email to linux-audio-dev-le...@lists.linuxaudio.org
_______________________________________________
Linux-audio-dev mailing list -- linux-audio-dev@lists.linuxaudio.org
To unsubscribe send an email to linux-audio-dev-le...@lists.linuxaudio.org

Reply via email to