Changeset 3467:2edc25131da6 in roaraudio for libroarpulse


Ignore:
Timestamp:
02/14/10 00:03:27 (10 years ago)
Author:
phi
Branch:
default
Message:

get pacat to work using LD_PRELOAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/stream.c

    r3466 r3467  
    193193 switch (s->dir) { 
    194194  case PA_STREAM_PLAYBACK: 
    195     while ( s->iobuffer != NULL ) { 
     195    if ( s->iobuffer != NULL ) { 
    196196     if ( roar_buffer_get_data(s->iobuffer, &data) == -1 ) 
    197197      return; 
     
    216216     ROAR_DBG("_roar_pa_stream_ioecb(*): disable IO events"); 
    217217     ea->io_enable(e, PA_IO_EVENT_HANGUP|PA_IO_EVENT_ERROR); 
     218 
     219     if ( s->cb.write.cb.rcb != NULL ) 
     220      s->cb.write.cb.rcb(s, pa_stream_writable_size(s), s->cb.write.userdata); 
     221 
     222     if ( s->cb.drain.cb.scb != NULL ) 
     223      s->cb.drain.cb.scb(s, 1, s->cb.drain.userdata); 
    218224    } 
    219225   break; 
     
    430436 } 
    431437 
     438 ROAR_DBG("pa_stream_write(p=%p, data=%p, length=%llu, free_cb=%p, offset=%lli, seek=%i) = 0", p, data, (long long unsigned int) length, free_cb, offset, seek); 
    432439 return 0; 
    433440} 
Note: See TracChangeset for help on using the changeset viewer.