Changeset 3472:d2274d9b5795 in roaraudio for libroarpulse


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

get it to work with pacat!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/mainloop.c

    r3469 r3472  
    131131 pa_mainloop * m = roar_mm_malloc(sizeof(pa_mainloop)); 
    132132 
     133 ROAR_DBG("pa_mainloop_new() = ?"); 
     134 
    133135 if ( m == NULL ) 
    134136  return NULL; 
     
    142144 m->api.io_set_destroy = _roar_pa_io_set_destroy; 
    143145 
     146 ROAR_DBG("pa_mainloop_new() = %p", m); 
    144147 return m; 
    145148} 
     
    147150/** Free a main loop object */ 
    148151void pa_mainloop_free(pa_mainloop* m) { 
     152 ROAR_DBG("pa_mainloop_free(m=%p) = ?", m); 
     153 
    149154 if ( m == NULL ) 
    150155  return; 
    151156 
    152157 roar_mm_free(m); 
     158 
     159 ROAR_DBG("pa_mainloop_free(m=%p) = (void)", m); 
    153160} 
    154161 
     
    278285 int r; 
    279286 
     287 ROAR_DBG("pa_mainloop_iterate(m=%p, block=%i, retval=%p) = ?", m, block, retval); 
     288 
    280289 if ( m == NULL ) 
    281290  return -1; 
     
    283292 r = pa_mainloop_prepare(m, block ? -1 : 0); 
    284293 
    285  if ( r > 0 ) 
     294 if ( r >= 0 ) 
    286295  r = pa_mainloop_poll(m); 
    287296 
     
    293302 } 
    294303 
     304 ROAR_DBG("pa_mainloop_iterate(m=%p, block=%i, retval=%p) = %i", m, block, retval, r); 
    295305 return r; 
    296306} 
     
    300310 int r = 1; 
    301311 
     312 ROAR_DBG("pa_mainloop_run(m=%p, retval=%p) = ?", m, retval); 
     313 
    302314 if ( m == NULL ) 
    303315  return -1; 
     
    307319 } 
    308320 
     321 ROAR_DBG("pa_mainloop_run(m=%p, retval=%p): r=%i", m, retval, r); 
     322 
    309323 if ( r == -2 ) 
    310324  return 1; 
Note: See TracChangeset for help on using the changeset viewer.