/dev/dsp and /dev/mixer are devices for the OSS3 sound system. The device paths are always the same on all systems.
However, due to the many limits of OSS3, almost all modern Linux distributions use ALSA for sound, which doesn't have dsp and mixer devices. It's possible to use OSS emulation in several ways:
User-mode, PulseAudio:
PulseAudio comes with OSS emulation libraries. Run your program through padsp:
padsp ./sjphone
User-mode, direct ALSA:
Install the alsa-oss package, then run your program through aoss:
aoss ./sjphone
This works on PulseAudio systems too (although maybe not as well as padsp).
Kernel-mode:
Load the snd-pcm-oss and snd-mixer-oss kernel modules, then run your program normally:
sudo modprobe snd-pcm-oss
sudo modprobe snd-mixer-oss
./sjphone
This method is not recommended – especially avoid it on PulseAudio systems, since kernel OSS emulation may conflict with how PulseAudio manages the hardware. User-mode padsp or aoss is usually the better choice.
Is there any case like it blocks from other visitors?I don't believe so – marto Jul 14 '11 at 15:39