Re: [linux-audio-dev] O_NONBLOCK in OSS

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] O_NONBLOCK in OSS
From: Paul Barton-Davis (pbd_AT_Op.Net)
Date: ma marras 15 1999 - 23:38:08 EST


> If I open the device O_NONBLOCK, my app skips alot, with lots of
>annoying clicks happening every buffer. Shortening the buffer size
>increases the annoying click factor.
>
> If I remove O_NONBLOCK from the open call, the app doesn't skip at all,
>and sounds perfect.
>
> Is this expected behavior? I do NOT like apps blocking when, say, my
>mp3 player is running. I'd like to know how to get my app to work when
>it's in O_NONBLOCK mode. This doesn't seem to make much sense to me at
>all.
>
> Advice? And quick, I want to release this app tonight! ;-)

for quickest service: send me your code. are you doing things
differently in non-blocking mode ? i *hope* so - doing the same thing
will indicate to the driver that you don't care if your write failed
because there wasn't enough space in the h/w buffer.

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:23:25 EST