Changeset 3433:5fb9bfd5e810 in roaraudio


Ignore:
Timestamp:
02/12/10 15:50:59 (10 years ago)
Author:
phi
Branch:
default
Message:

pa_stream_connect_record() and pa_stream_connect_playback() -> _roar_pa_stream_open()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/stream.c

    r3432 r3433  
    170170} 
    171171 
     172static int _roar_pa_stream_open (pa_stream *s, 
     173                                 const char *dev, 
     174                                 const pa_buffer_attr *attr, 
     175                                 pa_stream_flags_t flags, 
     176                                 pa_cvolume *volume, 
     177                                 pa_stream *sync_stream, 
     178                                 pa_stream_direction_t dir) { 
     179 return -1; 
     180} 
     181 
    172182/** Connect the stream to a sink */ 
    173183int pa_stream_connect_playback( 
     
    177187        pa_stream_flags_t flags       /**< Additional flags, or 0 for default */, 
    178188        pa_cvolume *volume            /**< Initial volume, or NULL for default */, 
    179         pa_stream *sync_stream        /**< Synchronize this stream with the specified one, or NULL for a standalone stream*/); 
     189        pa_stream *sync_stream        /**< Synchronize this stream with the specified one, or NULL for a standalone stream*/) { 
     190 return _roar_pa_stream_open(s, dev, attr, flags, volume, sync_stream, PA_STREAM_PLAYBACK); 
     191} 
    180192 
    181193/** Connect the stream to a source */ 
     
    184196        const char *dev               /**< Name of the source to connect to, or NULL for default */, 
    185197        const pa_buffer_attr *attr    /**< Buffer attributes, or NULL for default */, 
    186         pa_stream_flags_t flags       /**< Additional flags, or 0 for default */); 
     198        pa_stream_flags_t flags       /**< Additional flags, or 0 for default */) { 
     199 return _roar_pa_stream_open(s, dev, attr, flags, NULL, NULL, PA_STREAM_RECORD); 
     200} 
    187201 
    188202/** Disconnect a stream from a source/sink */ 
Note: See TracChangeset for help on using the changeset viewer.