[nas] problems setting up nas

xing at synapse.plus.com xing at synapse.plus.com
Fri Feb 20 04:47:57 MST 2009


i have a problem trying to get nas set up on a couple of my gentoo
boxes. i've got the following symptoms:


running audial on client results in dialtone on server using this command:
$ audial -audio slush:0 1

this is the output on the server running nas:
------------------------------------------------------------------------
$ nasd -aa -v -d 99
setTimer(rate = 0);
setSampleRate(rate = 5000);
setTimer(rate = 5000);
enableProcessFlow();
setTimer(rate = 0);
openDevice
openDevice: current sample rate = 5000
openDevice OUT /dev/dsp mode 1
setupSoundcard(...);
++ Setting up Output device (/dev/dsp)
+++ requesting wordsize of 16, got 16
+++ requesting 2 channel(s), got 2 channel(s)
+++ Requesting minimum sample rate of 5000, got 5000
+++ Requesting maximum sample rate of 44100, got 44100
openDevice: input device already open
openDevice: output mixer device already open
openDevice: input mixer device already open
setTimer(rate = 0);
setSampleRate(rate = 5000);
setSampleRate(): set output sample rate to 5000
setSampleRate(): setting sndStatIn = sndStatOut
setTimer(rate = 5000);
enableProcessFlow() - set SIGALRM handler to intervalProc
disableProcessFlow() - starting
closeDevice: out
closeDevice OUT /dev/dsp mode 1
closeDevice: mixer
closeDevice: leaving mixer device(s) open
disableProcessFlow() - done;
serverReset();
setTimer(rate = 0);
closeDevice: out
closeDevice: output device already closed
closeDevice: mixer
closeDevice: leaving mixer device(s) open
 done.
AuInitPhysicalDevices();
Init: will close device when finished with stream.
Init: will keep mixer device open.
Init: Leaving the mixer device options alone at startup.
setTimer(rate = 0);
createServerComponents(...);
------------------------------------------------------------------------



however, using auplay on the client yields the following with _no sound_ being
played on the server. client side output:
------------------------------------------------------------------------
$ auplay -i -audio slush:0 test.wav 
      Filename: test.wav
   File Format: Microsoft WAVE
   Data Format: 16-bit signed linear (little endian)
        Tracks: 2
     Frequency: 44100 Hz
      Duration: 44.77 seconds

test.wav
------------------------------------------------------------------------
which is where it stops - nothing else happens on the client side, regardless
of how long i wait. i need to send a kill signal to auplay for it to stop. when
i start the above command, there's a small crack on the speakers indicating
that something should happen and that something is working, but it won't start
playing the file. i've also tried using 'mplayer -ao nas' resulting in a
similar result.



this is the output on the server running nas:
------------------------------------------------------------------------
$ nasd -aa -v -d 99
setTimer(rate = 0);
setSampleRate(rate = 5000);
setTimer(rate = 5000);
setTimer(rate = 0);
setSampleRate(rate = 44100);
setSampleRate(): set output sample rate to 44100
setSampleRate(): set input sample rate to 44100
setTimer(rate = 44100);
enableProcessFlow();
setTimer(rate = 0);
openDevice
openDevice: current sample rate = 44100
openDevice OUT /dev/dsp mode 1
setupSoundcard(...);
++ Setting up Output device (/dev/dsp)
+++ requesting wordsize of 16, got 16
+++ requesting 2 channel(s), got 2 channel(s)
+++ Requesting minimum sample rate of 5000, got 5000
+++ Requesting maximum sample rate of 44100, got 44100
openDevice: input device already open
openDevice: output mixer device already open
openDevice: input mixer device already open
setTimer(rate = 0);
setSampleRate(rate = 44100);
setSampleRate(): setting sndStatIn = sndStatOut
setTimer(rate = 44100);
enableProcessFlow() - set SIGALRM handler to intervalProc

---------------- this is where i kill auplay on client -----------------

setTimer(rate = 0);
setSampleRate(rate = 5000);
setSampleRate(): set output sample rate to 5000
setSampleRate(): setting sndStatIn = sndStatOut
setTimer(rate = 5000);
disableProcessFlow() - starting
closeDevice: out
closeDevice OUT /dev/dsp mode 1
closeDevice: mixer
closeDevice: leaving mixer device(s) open
disableProcessFlow() - done;
serverReset();
setTimer(rate = 0);
closeDevice: out
closeDevice: output device already closed
closeDevice: mixer
closeDevice: leaving mixer device(s) open
 done.
AuInitPhysicalDevices();
Init: will close device when finished with stream.
Init: will keep mixer device open.
Init: Leaving the mixer device options alone at startup.
setTimer(rate = 0);
createServerComponents(...);
------------------------------------------------------------------------



i simply can't work out what the problem is since the audial test works. any
pointers are much appreciated. i've also tried reversing the roles of
server <--> client with the same results.

x



More information about the Nas mailing list