Re: xmms redirection to stdout
Ben Winslow <[email protected]> Wed, 24 Aug 2005 11:55:07 -0400
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2005-08-24 at 16:24 +0200, Tim Gruene wrote: > Sorry for this non-developer question, but I did not find the answer > elsewhere. > > Is there a way to redirect the sound output of xmms to stdout? > I tried using the diskwriter plugin as output and setting it to > /dev/pts/3, but that did not work. > > I would like to use a2play from the bluetooth-alsa project to use xmms > with a stereo headset, i.e., I would like to do something like > xmms -audioout - | aplay <mybdaddress> Can't you use the ALSA output plugin and select the bluetooth headset in its configuration dialog? (under 'Audio Device'.) Failing that, having the disk writer plugin write to a fifo (e.g. mkfifo /tmp/audio.wav, set wav writer output to /tmp/audio.wav, aplay /tmp/audio.wav) might work. Since WAVE files have a length section in the header, you'll often run into undefined behavior when trying to pipe a WAVE somewhere else (because the writing application can't seek back to the beginning of the pipe to write the length, once it's known.) Because of this, your best bet is to use the ALSA output plugin if it's possible to do so. -- Ben Winslow <[email protected]>