Changeset 3454:57b8f9e6de1e in roaraudio for libroarpulse


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

implemented pa_stream_get_buffer_attr()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/stream.c

    r3453 r3454  
    5757 pa_io_event           * io_event; 
    5858 pa_timing_info          timinginfo; 
     59 pa_buffer_attr          bufattr; 
    5960 struct roar_buffer    * iobuffer; 
    6061 struct { 
     
    249250 } 
    250251 
     252 // TODO: update s->fragments. 
     253 
     254 s->bufattr.maxlength = s->fragments.size * s->fragments.num; 
     255 s->bufattr.tlength   = s->fragments.size; 
     256 s->bufattr.prebuf    = 0; 
     257 s->bufattr.minreq    = 1; 
     258 s->bufattr.fragsize  = s->fragments.size; 
     259 
    251260 pa_stream_set_state(s, PA_STREAM_READY); 
    252261 
     
    671680 * stream has been connected successfuly and if the server is at least 
    672681 * PulseAudio 0.9. \since 0.9.0 */ 
    673 const pa_buffer_attr* pa_stream_get_buffer_attr(pa_stream *s); 
     682const pa_buffer_attr* pa_stream_get_buffer_attr(pa_stream *s) { 
     683 if ( s == NULL ) 
     684  return NULL; 
     685 
     686 return &(s->bufattr); 
     687} 
    674688 
    675689//ll 
Note: See TracChangeset for help on using the changeset viewer.