Changeset 3748:255ac9d65f87 in roaraudio for plugins/alsa


Ignore:
Timestamp:
05/01/10 18:09:31 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added pollfh support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/alsa/pcm.c

    r3739 r3748  
    4141static int roar_pcm_start (snd_pcm_ioplug_t * io) { 
    4242 struct roar_alsa_pcm * self = io->private_data; 
     43 int                    fh; 
    4344 
    4445 ROAR_DBG("roar_pcm_start(*) = ?"); 
     
    5354                                    ) == -1 ) { 
    5455  return -EINVAL; 
     56 } 
     57 
     58 if ( roar_vio_ctl(&(self->stream_vio), io->stream == SND_PCM_STREAM_PLAYBACK ? 
     59                                        ROAR_VIO_CTL_GET_SELECT_WRITE_FH : ROAR_VIO_CTL_GET_SELECT_READ_FH, 
     60                   &fh) != -1 ) { 
     61 
     62  io->poll_fd     = fh; 
     63  io->poll_events = io->stream == SND_PCM_STREAM_PLAYBACK ? POLLOUT : POLLIN; 
     64 
     65  snd_pcm_ioplug_reinit_status(io); 
    5566 } 
    5667 
Note: See TracChangeset for help on using the changeset viewer.