filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.17k stars 450 forks source link

Xubuntu: AL error #210

Open filoe opened 7 years ago

filoe commented 7 years ago

Strange, when I restart the computer, it works temporarily, but later (few minutes) gives the error:

shm_open() failed: No such file or directory
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
shm_open() failed: No such file or directory
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Protocol error
CSCore.SoundOut.AL.ALException: Could not open device "ALSA Default".
Thread started:  #2
Thread finished:  #2
Thread started:  #3
Thread finished:  #3
shm_open() failed: No such file or directory
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
shm_open() failed: No such file or directory
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Protocol error

AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connection refused
CSCore.SoundOut.AL.ALException: Could not open device "ALSA Default".
  at CSCore.SoundOut.AL.ALDevice.get_DeviceHandle () [0x00000] in cscore-linux/CSCore/SoundOut/AL/ALDevice.cs:31 
  at CSCore.SoundOut.AL.ALContext..ctor (CSCore.SoundOut.AL.ALDevice device) [0x00000] in cscore-linux/CSCore/SoundOut/AL/ALContext.cs:69 
  at CSCore.SoundOut.ALSoundOut.Initialize (CSCore.IWaveSource source) [0x00000] in cscore-linux/CSCore/SoundOut/ALSoundOut.cs:327 
  at WinformsVisualization.Form1.openToolStripMenuItem_Click (System.Object sender, System.EventArgs e) [0x00000] in cscore-linux/Samples/WinformsVisualization/Form1.cs:70 
Mr-Crabman commented 7 years ago

I've figured out the trigger, this error happens when running the program after using audio in another application, such as a browser video.

How to fix it beyond restarting is another problem.

JJtheJJpro commented 7 years ago

That is strange.