[nas] Say yes to $AUDIODEV

Paul Fox pgf at foxharp.boston.ma.us
Sun Jun 24 08:06:29 MDT 2012

james wrote:
 > Hello,
 > I want to redirect the audio output of Firefox when running on a remote
 > machine, obviously $DISPLAY handles the visual.  From what I can tell
 > nasd needs an NAS aware program and FF isn't.

there's a program floating around called audiooss that might do what
you want.  it's a wrapper library that intercepts the open() of
/dev/audio, and redirects it to nas code, which will honor

it's been a long time since i've used it, and it's possible that
firefox's use of /dev/audio is more complicated than audiooss can
handle, but it's worth a try.


 > I know Firefox uses the env var AUDIODEV as its audio output device
 > (shown when I use a SunRay which creates pseudo audio devices in /tmp
 > connected to the SunRay's speaker(s)).
 > Is it possible to create a device that acts like /dev/audio, pointed to
 > by $AUDIODEV, that captures, redirects or otherwise injects to nasd?
 > I tried creating a simple FIFO (mkfifo(1)) as the AUDIODEV but Firefox
 > stalls, presumably it expects to read parameters back and not just fopen
 > and write.  It must be possible to create an audio device that does this
 > but I was hoping not to write from scratch!  Does NAS help here?  Any
 > other ideas?
 > James.
 > _______________________________________________
 > nas mailing list
 > nas at radscan.com
 > http://radscan.com/cgi-bin/mailman/listinfo/nas

 paul fox, pgf at foxharp.boston.ma.us (arlington, ma, where it's 64.0 degrees)

More information about the nas mailing list