OS: Linux Mint 20.1 Ulyssa
Python: Python 3.8.5
All python packages installed through pip3, all necessary libraries installed via apt, I have double checked they are all the latest version.
Environment established, I mostly use the -noroot flag, as I don't like handing over root control unless I need to. Unfortunately I have noticed it is less than reliable with Elite Dangerous, there will be times the script will claim it has pressed a key, but the game will not respond for some reason. This could be due to a number of issues in the script or my own proton setup, it's hard to determine.
So, I decided to attempt the root method. I followed the steps exactly, and this is the output I get:
SoundFiles: init
SoundFiles: scanning
ALSA lib pcm_dsnoop.c:641:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
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 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 pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
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_dsnoop.c:641:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2718
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2842
Traceback (most recent call last):
File "./main.py", line 332, in <module>
mainWnd = MainWnd()
File "./main.py", line 26, in __init__
self.m_profileExecutor = ProfileExecutor(None, self)
File "/home/nick/Downloads/git-repos/LinVAM/profileexecutor.py", line 33, in __init__
self.m_stream = self.m_pyaudio.open(format=pyaudio.paInt16, channels=1, rate=16000, input=True)
File "/usr/local/lib/python3.8/dist-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pyaudio.py", line 441, in __init__
self._stream = pa.open(**arguments)
OSError: [Errno -9997] Invalid sample rate
My instinct says this is an issue of pulseaudio not playing nice under sudo, but I haven't found a reason that would be, much less a fix.
I may create a branch on my local and attempt to fix this if I find something that looks useful, but until then, the report is here.
OS: Linux Mint 20.1 Ulyssa
Python: Python 3.8.5
All python packages installed through pip3, all necessary libraries installed via apt, I have double checked they are all the latest version.
Environment established, I mostly use the -noroot flag, as I don't like handing over root control unless I need to. Unfortunately I have noticed it is less than reliable with Elite Dangerous, there will be times the script will claim it has pressed a key, but the game will not respond for some reason. This could be due to a number of issues in the script or my own proton setup, it's hard to determine.
So, I decided to attempt the root method. I followed the steps exactly, and this is the output I get:
My instinct says this is an issue of pulseaudio not playing nice under sudo, but I haven't found a reason that would be, much less a fix.
I may create a branch on my local and attempt to fix this if I find something that looks useful, but until then, the report is here.