[nas] Question regarding performance of playRaw and AuHandleEvents()
Matt Prazak
prazak_lists at yahoo.com
Tue Jun 22 19:48:11 MDT 2004
--- Jon Trulson <jon at radscan.com> wrote:
> On Mon, 21 Jun 2004, Matt Prazak wrote:
>
> > ...
> >
> > I have been trying out the NAS plugin for libao (for audio output
> > from Ogg Vorbis tools, e.g., ogg123), but have had trouble getting
> > that driver working on my platform, Solaris 9/SPARC 12/02. I am
> > now trying piping the output of ogg123 directly to playRaw from
> > NAS' example programs:
> >
> > ogg123 --device=raw --file=- filename.ogg |
> > .../nas-1.6/clients/audio/examples/playRaw -
> >
>
> A shame... I would think the plugin would work better...
>
Today, I compiled all the vorbis tools and NAS under Debian Linux 3.0
(updated to 2.4.18 kernel, though), and found a whole different
scenario. Under Linux, the libao plugin works _just_fine_, while
piping the output to playRaw generates static...this is completely
opposite to my experience under Solaris 9.
I guess my current problem matrix would be, including from
host-to-host:
nasd on Solaris nasd on Linux
libao on Solaris choppy audio "Audio Error"
libao on Linux choppy audio very good
playRaw on Solaris good/pegged CPU good/pegged CPU
playRaw on Linux outputs static outputs static
I'll look into your suggestions below and see if I can make sense of
the patterns in the matrix.
Matt
>
> > ...
>
> The default settings for nas.conf are geared to lower latency, so
> there is not alot of data being queued up on the server, and hence
> frequent low water events.
>
> With the default minfrags = 2 and maxfrags = 3, there is alot of
> event traffic going on. I'm assuming the ogg output data is
> 16b at 44.1kHz?
>
> Also, tweaking AuSoundPortDuration, AuSoundPortLowWaterMark, and
> AuSoundPortHighWaterMark (library externs defined in audio.h) might
> help...
>
>
> --
> Jon Trulson mailto:jon at radscan.com
> ID: 1A9A2B09, FP: C23F328A721264E7 B6188192EC733962
> PGP keys at http://radscan.com/~jon/PGPKeys.txt
> #include <std/disclaimer.h>
> "I am Nomad." -Nomad
>
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
More information about the Nas
mailing list