Changeset 3440:7730bc584725 in roaraudio


Ignore:
Timestamp:
02/13/10 14:42:07 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added _roar_pa_stream_ioecb(), added some debug lions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/stream.c

    r3439 r3440  
    9898 pa_stream * s; 
    9999 
     100 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = ?", c, name, ss, map, p); 
     101 
    100102 if ( p != NULL ) 
    101103  return NULL; 
     
    108110 memcpy(&(s->sspec), ss, sizeof(pa_sample_spec)); 
    109111 
     112 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = ?", c, name, ss, map, p); 
     113 
    110114 if ( roar_pa_sspec2auinfo(&(s->stream.info), ss) == -1 ) { 
    111115  roar_mm_free(s); 
     116  ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = NULL // invalid format", c, name, ss, map, p); 
    112117  return NULL; 
    113118 } 
     
    119124 s->c     = c; 
    120125 pa_context_ref(c); 
     126 
     127 ROAR_DBG("pa_stream_new_with_proplist(c=%p, name='%s', ss=%p, map=%p, p=%p) = ?", c, name, ss, map, p); 
    121128 
    122129 return s; 
     
    169176uint32_t pa_stream_get_index(pa_stream *s) { 
    170177 return 0; 
     178} 
     179 
     180static void _roar_pa_stream_ioecb(pa_mainloop_api     * ea, 
     181                                  pa_io_event         * e, 
     182                                  int                   fd, 
     183                                  pa_io_event_flags_t   events, 
     184                                  void                * userdata) { 
     185 ROAR_DBG("_roar_pa_stream_ioecb(*) = (void)"); 
    171186} 
    172187 
     
    226241 if ( api != NULL && api->io_new != NULL ) { 
    227242  if ( roar_vio_ctl(&(s->vio), ctl, &fh) != -1 ) { 
    228    s->io_event = api->io_new(api, fh, event_flags, NULL, s); 
     243   s->io_event = api->io_new(api, fh, event_flags, _roar_pa_stream_ioecb, s); 
    229244  } 
    230245 } 
Note: See TracChangeset for help on using the changeset viewer.