-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to list and use ALSA's plughw: devices (env PA_ALSA_PLUGHW=1 already set)? #146
Comments
When I tried it (Debian Linux, using Pulse Audio) there was a little change in the device names and in the number of channels:
So setting the environment variable definitely has some effect, but I don't know if this helps in your case? I don't know anything about the debug logger, how would you use it from C++ code? |
Hey guys, Here's my progress so far:
According to the first post of AfterEight I searched for the corresponding code in portaudio and found this (https://github.com/EddieRingle/portaudio/blob/master/src/hostapi/alsa/pa_linux_alsa.c):
So at least i would guess:
Hope this helps, if somebody is searching for a solution. Best Regards. |
Very Good!
then all of your device listed will be changed to plughw, so now you can choose the sample rate which is not supported by hw device. |
Hey everybody, first of all, thank you for the library and the amount of examples!
I wonder, if its possible to use ALSA's plugins to appear in 'list-devices' and to use those in the audiostream callback. Concretely, I'm using a Unix-based setup with ALSA and as cross-plattform audio library libportaudio2 installed via pip. According to PortAudio (which can be found in portaudio/src/hostapi/alsa/pa_linux_alsa.c, l. 1669: static PaError AlsaOpen), you just need to set a variable to list and use the plughw devices. I've set PA_ALSA_PLUGHW=1 it in both the user-based ~/.bashrc and the system-wide /etc/profile configuration files - however, under sounddevice it does not seem to be recognized (it still just shows the hw: devices).
I've also checked that PortAudio is installed in the latest release: dpkg -l |grep portaudio, shows v19.
Sure, it can be an issue with PortAudio, but before I'm going to debug using and compiling the PA code, I wanted to ask you in case someone knows a solution. Btw. PortAudio provides a debug logger - does someone know how to track those, when calling the C++ lib from a python code?
The text was updated successfully, but these errors were encountered: