diff options
author | Colin Guthrie <colin@mageia.org> | 2011-05-15 13:14:33 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-05-15 13:14:33 +0100 |
commit | 26b4bd74aa92ed51a33a59af46ec32d7e5b66628 (patch) | |
tree | ba0105baedff9f796f89b31b10953748a119d644 /src/pulse/stream.h | |
parent | be4208d0799f21663f58f50430b4883e87709480 (diff) | |
parent | 7ebc5033637d7f0ca8ece80259d8a5dc6b30557b (diff) |
Merge branch 'passthrough'
Diffstat (limited to 'src/pulse/stream.h')
-rw-r--r-- | src/pulse/stream.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pulse/stream.h b/src/pulse/stream.h index dd67db73..b265fae6 100644 --- a/src/pulse/stream.h +++ b/src/pulse/stream.h @@ -26,6 +26,7 @@ #include <sys/types.h> #include <pulse/sample.h> +#include <pulse/format.h> #include <pulse/channelmap.h> #include <pulse/volume.h> #include <pulse/def.h> @@ -356,6 +357,16 @@ pa_stream* pa_stream_new_with_proplist( const pa_channel_map *map /**< The desired channel map, or NULL for default */, pa_proplist *p /**< The initial property list */); +/* Create a new, unconnected stream with the specified name, the set of formats + * this client can provide, and an initial list of properties. While + * connecting, the server will select the most appropriate format which the + * client must then provide. \since 1.0 */ +pa_stream *pa_stream_new_extended( + pa_context *c /**< The context to create this stream in */, + const char *name /**< A name for this stream */, + pa_format_info * const * formats /**< The list of formats that can be provided */, + pa_proplist *p /**< The initial property list */); + /** Decrease the reference counter by one */ void pa_stream_unref(pa_stream *s); @@ -698,6 +709,9 @@ const pa_sample_spec* pa_stream_get_sample_spec(pa_stream *s); /** Return a pointer to the stream's channel map. */ const pa_channel_map* pa_stream_get_channel_map(pa_stream *s); +/** Return a pointer to the stream's format \since 1.0 */ +const pa_format_info* pa_stream_get_format_info(pa_stream *s); + /** Return the per-stream server-side buffer metrics of the * stream. Only valid after the stream has been connected successfuly * and if the server is at least PulseAudio 0.9. This will return the |