Oops - should have said sdtaudio, not sdtaudiocontrol.

Bob Doolittle wrote:

Chrystophe Vergnaud wrote:

Le Mardi 07 Mars 2006 19:45, Bob Doolittle a écrit :
Chrystophe Vergnaud wrote:
Hi,

I'm working on an audio conferencing software and I don't understand
how audio recording works on sunray.

I works on solaris 10 with SRSS 3.1.
I have tried the oss* commands (oss package from 4front technologies) and
the esd* commands without success :

With the oss* command I can record my voice on the server with a
microphone and play it without problem.
When I try to record myself on the sunray, it create the sample but when I
play it there's no sound. (when i play a 'good' sample I can hear it.)
I think that I don t record the good dev. I understand that $AUDIODEV is
used to play sound, but is it used to record too ?

It's up to the application to honor $AUDIODEV, so I think this is
really a question about OSS/ESD, not Sun Ray.


SRSS creates dev for each SunRay.
For my test I have one sunray on the network so it s easy to list the dev :

# ls /tmp/SUNWut/dev/utaudio/
1      1ctl   1stat

The output stream is the 1 (cat mysample.wav >/tmp/SUNWut/dev/utaudio/1 works), but there's no input input stream declared that's why I have no recording.

This is both an input and output device.  You can prove this to
yourself by playing with /usr/dt/bin/sdtaudiocontrol.  Once the
device is opened for reading the Sun Ray will initiate the
upstream audio protocol.

If you can't get to it from OSS/ESD, then most likely the problem
lies there.

One thing to try is to set LD_PRELOAD=libc_ut.so in your
environment and see if this solves your problem.  This
library interposes open calls to "/dev/audio" and converts them
to opens of $AUDIODEV for naive applications/frameworks
that don't honor the variable properly.  I'm not sure how early
you'd need to set this in order to get OSS/ESD to pick it up.

-Bob



_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to