Changeset 3450:65b4cc64b26e in roaraudio for libroarpulse


Ignore:
Timestamp:
02/13/10 19:02:12 (10 years ago)
Author:
phi
Branch:
default
Message:

added pa_stream_update_timing_info()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/stream.c

    r3449 r3450  
    468468 * or pa_stream_get_time() or pa_stream_get_latency() to get cleaned 
    469469 * up values. */ 
    470 pa_operation* pa_stream_update_timing_info(pa_stream *p, pa_stream_success_cb_t cb, void *userdata); 
     470pa_operation* pa_stream_update_timing_info(pa_stream *p, pa_stream_success_cb_t cb, void *userdata) { 
     471 int suc = 1; 
     472 
     473 if ( p == NULL ) 
     474  return NULL; 
     475 
     476 if ( roar_get_stream(roar_pa_context_get_con(p->c), &(p->stream), p->stream.id) == -1 ) { 
     477  suc = 0; 
     478 } 
     479 
     480 if ( cb != NULL ) { 
     481  cb(p, suc, userdata); 
     482 } 
     483 
     484 return roar_pa_op_new_done(); 
     485} 
    471486 
    472487/** Set the callback function that is called whenever the state of the stream changes */ 
Note: See TracChangeset for help on using the changeset viewer.