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: Michael Krause (m.krause_AT_tu-harburg.de)
Date: ti marras 16 1999 - 05:02:57 EST


On Tue, 16 Nov 1999, Billy Biggs wrote:

> So basically, I don't want my app to sit there waiting if someone else
> is using the soundcard. That's what happens if I take out the O_NONBLOCK
> flag to the call to open. The only hack I can think of would be to try to
> open it NONBLOCK, and if that works, re-open it without the flag. Ugly
> ugly ugly.

No, open /dev/dsp with O_NONBLOCK, and if it succeeds, do a fcntl(fd,
F_SETFL, 0) to clear O_NONBLOCK.

-- 
michael krause [aka raw style / lego] - www.tu-harburg.de/~semk2104/


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