open /dev/[sound/]dsp: Device or resource busy

Installation and usage on Linux / Installation unter Linux
Post Reply
laserman
Posts: 29
Joined: 05 Oct 2009 15:43

open /dev/[sound/]dsp: Device or resource busy

Post by laserman »

Das Problem gibt's in allen HELI-X Versionen:

Heli-X startet nicht, wenn eine Anwendung läuft, die auch die Soundkarte nutzt.

HELI-X sollte pulseaudio nutzen oder eine Option -nosound anbieten und dann nicht versuchen,
/dev/dsp zu öffnen.
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: open /dev/[sound/]dsp: Device or resource busy

Post by Michael »

Schau mal nach, da gibt es ein zweites Shell-Skript zum starten, dass die Sound ressourcen geteilt werden können....

Michael
helinoob
Posts: 11
Joined: 21 Jun 2010 07:42

Re: open /dev/[sound/]dsp: Device or resource busy

Post by helinoob »

Sorry, my German is non-existent...

I use a Gentoo system with no pulseaudio. The solution that works for me is to remove (rename) libopenal.so that comes with HELI-X and rely on the native libopenal.so and ALSA's built-in mixer.

This is my ~/.openalrc file:

Code: Select all

(define devices '(alsa))
(define alsa-out-device default)
(define alsa-in-device default)
You probably should not touch your ~/.asoundrc file, but here's mine, just in case:

Code: Select all

pcm.!default {
         type asym
         playback.pcm {
                 type plug
                 slave.pcm "dmix:0,0"
         }
         capture.pcm {
                 type plug
                 slave.pcm "hw:1,0"
         }
}
"hw:1,0" is my USB microphone. If you have a single sound card you probably should use "hw:0,0". The "dmix:0,0" is the ALSA's software mixer that makes sound card sharing work.
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: open /dev/[sound/]dsp: Device or resource busy

Post by Michael »

Thanks.

Michael
Post Reply