From: Takashi Iwai Subject: Re: poll() and select() Date: Tue, 14 Oct 2003 11:49:37 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20031013105324.637917b0.rpav@mephle.com> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20031013105324.637917b0.rpav@mephle.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Ryan Pavlik Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 13 Oct 2003 10:53:24 -0700, Ryan Pavlik wrote: > > Hey, I'm currently pondering an ALSA interface for Ruby > (http://ruby-lang.org). Unfortunately, to do what I want, I need to > be able to have a file descriptor for select(). I've tried using the > fds returned by snd_seq_poll_descriptors(), but (not suprisingly) they > didn't work: select blocks indefinitely. if i understand correctly, it should work. fd field in the returned pollfd struct is the file descriptor for select(). Takashi ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php