Hi all.

Due to user demand I currenty implement a rudimentary OSS plugin for
GSMP. I test it with the ALSA emulation but select on file-descripter
doesn't seem to work. I use:

   bool IsWriteable (int test_fd) {
      fd_set fs;
      timeval tv;
      
      tv.tv_sec = 0;
      tv.tv_usec = 0;
      
      FD_ZERO (&fs);
      FD_SET (test_fd, &fs);
      
      int ret = select (1, NULL, &fs, NULL, &tv);
      return (ret != 0);
    }

Is thehre s.th. wrong with my code or should I simply forget select
and use the return values of "SNDCTL_DSP_GETOSPACE" to determine whether
it is time to usleep ??

Thanks && k33p h4ck1n6
  René

-- 
René Rebe (Registered Linux user: #127875 <http://counter.li.org>)

eMail:    [EMAIL PROTECTED]
          [EMAIL PROTECTED]

Homepage: http://www.tfh-berlin.de/~s712059/index.html

Anyone sending unwanted advertising e-mail to this address will be
charged $25 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.

_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to