[nas] Configuring NAS and libaudiooss

Janyne Kizer janyne_kizer at ncsu.edu
Wed Jan 23 11:10:58 MST 2002


Thanks for your response.

Paul Fox wrote:
> 
> you're not giving a very complete picture of what you're doing,
> but let's see...
> 
>  > OK, I have NAS and libaudiooss installed.  When I use audemo and auplay
> 
> on your linux box, i guess?

The sound is coming out of an NCD HMX terminal that I am testing with.

> 
>  > sound comes out.  I've read the documents several times and I am still
> 
> sound comes out locally on the linux server, i assume.  i'll come back
> to this, down below.
> 
>  > not really understanding how to set this up to redirect sound to the NCD
>  > xterminals.  When I do
>  >
>  > export LD_PRELOAD=/user/X11R6/lib/libaudiooss.so.1.0
>  >
>  > I get no sound (from audemo or auplay or from anything) and I'm not sure
>  > what I am missing.  Thanks!
> 
> i think we need some clarity on the pieces that make up NAS.
> 
>     - there are clients, which send sound to NAS servers.  clients
>         include auplay, audemo, NAS-enabled apps like some versions
>         of mpg123, and _any_ sound app that operates in the presence
>         of libaudiooss.  so by running auplay with libaudiooss loaded,
>         you're doing sort of an incorrect double indirection.  this
>         isn't what libaudiooss is for -- it should be used with
>         programs that _aren't_ NAS-aware, like realaudio.

Right.  I could get sound on the HMX with just NAS installed.  I
installed libaudiooss in an attempt to get sound from other applications
like flash.  I was testing with midi synth and a few other sound making
applications.  This works whether or not I've done "export
AUDIOSERVER=myterm:0.0" and always fails after "export
LD_PRELOAD=/user/X11R6/lib/libaudiooss.so.1.0."  The error is "error
while loading shared libraries:  libaudio.so.2: cannot open shared
object file:  No such file or directory."  I have checked and
libaudio.so.2 does exist in /usr/X11R6/lib.  This was not in my path.  I
added it to my path and I continue to get this error after "export
LD_PRELOAD."

>     - there are NAS servers.  nasd is a NAS server, and accepts connections
>         from any of the clients above.  NCD X-terminals are also NAS
>         servers, and also accept connections from clients.

Well, this is actually part of the problem I think.  I know that I've
confused myself some here because I "knew" that sound didn't work before
installing NAS and did not test it.  After installing NAS sounds did
work on the HMX (audemo for example) but nmap indicates that nasd is not
running.  I changed the debug code from 0 to 3 and this is the error
that I get when starting nasd now (no error before changing debug code):

Jan 23 12:59:14 linus modprobe: modprobe: Can't locate module
sound-slot-0
Jan 23 12:59:14 linus modprobe: modprobe: Can't locate module
sound-service-0-3

I also have another question, could the problem be that the Linux server
itself does not have a sound card?

> how do clients find NAS servers?  by following the AUDIOSERVER environment
> variable.  because the design of NAS was to mimic X, and send sound to
> the places your graphics are going, the value in AUDIOSERVER needs
> to look a lot like a DISPLAY variable.
> 
> if the AUDIOSERVER variable isn't set, then the clients effectively
> assume that they should connect to a local NAS server, which is probably
> what happens when you simply run "auplay".
> 
> so:  if you're on an X-terminal named "myterm", try this:
> 
> $ export AUDIOSERVER=myterm:0.0
> $ auplay foo.wav
> 
> and see what happens.
> 
> hope this helps!  (and i hope i haven't made too many assumptions about
> what's going wrong.)
> 
> paul
> =---------------------
>  paul fox, pgf at foxharp.boston.ma.us (arlington, ma, where it's 44.1 degrees)

-- 

Janyne Kizer
CNE-3, CNE-4, CNE-5
Systems Programmer Administrator I
NC State University, College of Agriculture & Life Sciences
Extension and Administrative Technology Services
Phone: (919) 515-3609



More information about the Nas mailing list