Open SilverYoCha opened 3 years ago
You use PulseAudio with the default configuration. PulseAudio grabs all real ALSA devices and installs a single virtual ALSA device called "pulse" that is routed to the default audio device. If you want to expose multiple microphone devices as ALSA devices, you need to configure multiple instances of the pulse ALSA plugin. See https://wiki.archlinux.org/title/PulseAudio#Expose_PulseAudio_sources,_sinks_and_mixers_to_ALSA
Or you disable PulseAudio while playing ultrastardx with pasuspender to give ultrastardx direct access to the microphones.
Or you build ultrastardx --without-portaudio so that SDL is used to interface to PulseAudio without going through the pulse ALSA plugin.
Thank you very much for your help @s09bQ5. I finally chosen your third solution. After that, my microphone are well detected and selectable into options. But I have some huge slowdowns when my USB microphones are set. From microphones options, when selecting an USB one, the software takes 2 or 3 seconds to switch over. During a play, the software does not respond fastly to the keyboard and I am almost obliged to kill the soft from command lines. I thought that my PC has USB problems at first. But after trying other programs using microphones, I discovered that they were entirely functionnal. I don't know what it is going on. Some logs: Error.log
I have two identical micros, those provided with Let's Sing. They seem to be logitech ones, on USB : (alsamixer) My system is recognizing them : (pavucontrol) When I speak in front of my micros, I see the according level bar working.
Actual behaviour
But when I start ultrastardlx, the microphones are not detected. I can choose between and
When ultrastardlx is running, pavucontrol is displaying that: And the according menu looks like that:
During my lot of tries before posting an issue, I already succeed to see them into ultrastardlx, but it was not working well. Application took time to switch between the first micro to the second one into options. The application was generally very slow.
Expected behaviour
The mircos should have been provided into the sound card selection. (Ultrastardlx is working fine under Windows system with my micros)
Steps to reproduce
I hope someone could plug same kind of micro than mines to reproduce...
Details
Logs I can see when I start ultrastardlx from a console:
Expression 'alsa_snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &alsaBufferFrames )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 923 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.front.0:CARD=0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM front ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.surround51.0:CARD=0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM surround21 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.surround51.0:CARD=0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM surround21 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.surround40.0:CARD=0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM surround40 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.surround51.0:CARD=0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM surround41 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.surround51.0:CARD=0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM surround50 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.surround51.0:CARD=0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM surround51 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.surround71.0:CARD=0' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM surround71 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM iec958 ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.sof-hda-dsp.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave