]> code.delx.au - pulseaudio/blobdiff - polyp/polyplib-simple.h
rename some more
[pulseaudio] / polyp / polyplib-simple.h
index ed552cb468f878cab4f5c83ce9e6880f93169c6a..1bd46dc6317ae859c99f6374e28be7e0bcbd72fc 100644 (file)
@@ -54,7 +54,8 @@ struct pa_simple* pa_simple_new(
     const char *stream_name,            /**< A descriptive name for this client (application name, song title, ...) */
     const struct pa_sample_spec *ss,    /**< The sample type to use */
     const struct pa_buffer_attr *attr,  /**< Buffering attributes, or NULL for default */
-    int *error                        /**< A pointer where the error code is stored when the routine returns NULL. It is OK to pass NULL here. */
+    pa_volume_t volume,                 /**< Initial volume. Only for playback streams. \since 0.5 */
+    int *error                          /**< A pointer where the error code is stored when the routine returns NULL. It is OK to pass NULL here. */
     );
 
 /** Close and free the connection to the server. The connection objects becomes invalid when this is called. */
@@ -69,6 +70,12 @@ int pa_simple_drain(struct pa_simple *s, int *error);
 /** Read some data from the server */
 int pa_simple_read(struct pa_simple *s, void*data, size_t length, int *error);
 
+/** Return the playback latency. \since 0.5 */
+pa_usec_t pa_simple_get_playback_latency(struct pa_simple *s, int *perror);
+
+/** Flush the playback buffer. \since 0.5 */
+int pa_simple_flush(struct pa_simple *s, int *perror);
+
 PA_C_DECL_END
 
 #endif