multimedia over network III: any ALSA-enabled application
ALSA is the Advanced Linux Sound Architecture. The system can forward ALSA sound to PulseAudio.
My config file for ALSA:
pcm.pude {
type pulse
}
ctl.pude {
type pulse
}
In this config, I've created a pseudo-device "pude" (PulseAudio device) and specified that this device is connected to Pulse Audio.
Now the following should work:
$ mplayer 01_introduction.avi -vo null -ao alsa:device=pude
Unfortunately, on my system, mplayer's alsa output is broken. I get the following error:
pulse_write: Assertion `pcm->last_size >= (size * pcm->frame_size)' failed.
I don't know how to fix it.
Testing
The following plays on the local PC through the defaul ALSA device:
$ aplay /usr/share/sounds/*.wav
This plays over network (through PulseAudio):
$ aplay -D pude /usr/share/sounds/*.wav
Usage
Each application has its own way to specify
* to play through ALSA, and
* use the device "pude".
For example:
* mplayer: -ao alsa:device=pude
* xine: -A alsa:device=pude
Categories:
linux