Changeset 3466:6d461930b82b in roaraudio


Ignore:
Timestamp:
02/13/10 23:39:45 (10 years ago)
Author:
phi
Branch:
default
Message:

more debug lions, corrected number of fragments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/stream.c

    r3465 r3466  
    119119 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = ?", c, name, ss, map, p); 
    120120 
    121  s->fragments.num  = 8; 
     121 s->fragments.num  = 4; 
    122122 s->fragments.size = 2048; 
    123123 
     
    193193 switch (s->dir) { 
    194194  case PA_STREAM_PLAYBACK: 
    195     if ( s->iobuffer != NULL ) { 
     195    while ( s->iobuffer != NULL ) { 
    196196     if ( roar_buffer_get_data(s->iobuffer, &data) == -1 ) 
    197197      return; 
     
    202202     if ( (ret = roar_vio_write(&(s->vio), data, len)) == -1 ) 
    203203      return; 
     204 
     205     ROAR_DBG("_roar_pa_stream_ioecb(*): vio write() = %lli", (long long int) ret); 
    204206 
    205207     // TODO: handle errors 
     
    212214 
    213215    if ( s->iobuffer == NULL ) { 
     216     ROAR_DBG("_roar_pa_stream_ioecb(*): disable IO events"); 
    214217     ea->io_enable(e, PA_IO_EVENT_HANGUP|PA_IO_EVENT_ERROR); 
    215218    } 
     
    422425  api = roar_pa_context_get_api(p->c); 
    423426  if ( api != NULL ) { 
     427   ROAR_DBG("pa_stream_write(*): enable IO events"); 
    424428   api->io_enable(p->io_event, PA_IO_EVENT_OUTPUT|PA_IO_EVENT_HANGUP|PA_IO_EVENT_ERROR); 
    425429  } 
Note: See TracChangeset for help on using the changeset viewer.