Changeset 402:95514d86cca7 in roaraudio for libroarpulse
- Timestamp:
- 08/10/08 00:46:16 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/simple.c
r398 r402 3 3 #include <libroarpulse/libroarpulse.h> 4 4 5 /** Create a new connection to the server */ 6 pa_simple* pa_simple_new( 7 const char *server, /**< Server name, or NULL for default */ 8 const char *name, /**< A descriptive name for this client (application name, ...) */ 9 pa_stream_direction_t dir, /**< Open this stream for recording or playback? */ 10 const char *dev, /**< Sink (resp. source) name, or NULL for default */ 11 const char *stream_name, /**< A descriptive name for this client (application name, song title, ...) */ 12 const pa_sample_spec *ss, /**< The sample type to use */ 13 const pa_channel_map *map, /**< The channel map to use, or NULL for default */ 14 const pa_buffer_attr *attr, /**< Buffering attributes, or NULL for default */ 15 int *error /**< A pointer where the error code is stored when the routine returns NULL. It is OK to pass NULL here. */ 16 ) { 17 return NULL; 18 } 19 20 /** Close and free the connection to the server. The connection objects becomes invalid when this is called. */ 21 void pa_simple_free(pa_simple *s) { 22 } 23 24 /** Write some data to the server */ 25 int pa_simple_write(pa_simple *s, const void*data, size_t length, int *error) { 26 return -1; 27 } 28 29 /** Wait until all data already written is played by the daemon */ 30 int pa_simple_drain(pa_simple *s, int *error) { 31 return -1; 32 } 33 34 /** Read some data from the server */ 35 int pa_simple_read(pa_simple *s, void*data, size_t length, int *error) { 36 return -1; 37 } 38 39 /** Return the playback latency. \since 0.5 */ 40 pa_usec_t pa_simple_get_latency(pa_simple *s, int *error) { 41 return -1; 42 } 43 44 /** Flush the playback buffer. \since 0.5 */ 45 int pa_simple_flush(pa_simple *s, int *error) { 46 return -1; 47 } 48 5 49 //ll
Note: See TracChangeset
for help on using the changeset viewer.