Changeset 3466:6d461930b82b in roaraudio
- Timestamp:
- 02/13/10 23:39:45 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/stream.c
r3465 r3466 119 119 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = ?", c, name, ss, map, p); 120 120 121 s->fragments.num = 8;121 s->fragments.num = 4; 122 122 s->fragments.size = 2048; 123 123 … … 193 193 switch (s->dir) { 194 194 case PA_STREAM_PLAYBACK: 195 if( s->iobuffer != NULL ) {195 while ( s->iobuffer != NULL ) { 196 196 if ( roar_buffer_get_data(s->iobuffer, &data) == -1 ) 197 197 return; … … 202 202 if ( (ret = roar_vio_write(&(s->vio), data, len)) == -1 ) 203 203 return; 204 205 ROAR_DBG("_roar_pa_stream_ioecb(*): vio write() = %lli", (long long int) ret); 204 206 205 207 // TODO: handle errors … … 212 214 213 215 if ( s->iobuffer == NULL ) { 216 ROAR_DBG("_roar_pa_stream_ioecb(*): disable IO events"); 214 217 ea->io_enable(e, PA_IO_EVENT_HANGUP|PA_IO_EVENT_ERROR); 215 218 } … … 422 425 api = roar_pa_context_get_api(p->c); 423 426 if ( api != NULL ) { 427 ROAR_DBG("pa_stream_write(*): enable IO events"); 424 428 api->io_enable(p->io_event, PA_IO_EVENT_OUTPUT|PA_IO_EVENT_HANGUP|PA_IO_EVENT_ERROR); 425 429 }
Note: See TracChangeset
for help on using the changeset viewer.