From 37babc6d1a5b69fb1b3c70911d1ee3be465fb306 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Sat, 21 Dec 2019 09:58:57 +0200 Subject: [PATCH] stream: clarify the meaning of NULL device The old wording could be understood so that the default sink/source would always be used, but sometimes a policy module does a different decision (for example module-stream-restore). Related: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/767 --- src/pulse/stream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulse/stream.h b/src/pulse/stream.h index 7913f7fef..f9b52d413 100644 --- a/src/pulse/stream.h +++ b/src/pulse/stream.h @@ -414,7 +414,7 @@ int pa_stream_is_corked(const pa_stream *s); * Returns zero on success. */ int pa_stream_connect_playback( pa_stream *s /**< The stream to connect to a sink */, - const char *dev /**< Name of the sink to connect to, or NULL for default */ , + const char *dev /**< Name of the sink to connect to, or NULL to let the server decide */ , const pa_buffer_attr *attr /**< Buffering attributes, or NULL for default */, pa_stream_flags_t flags /**< Additional flags, or 0 for default */, const pa_cvolume *volume /**< Initial volume, or NULL for default */, @@ -423,7 +423,7 @@ int pa_stream_connect_playback( /** Connect the stream to a source. Returns zero on success. */ int pa_stream_connect_record( pa_stream *s /**< The stream to connect to a source */ , - const char *dev /**< Name of the source to connect to, or NULL for default */, + const char *dev /**< Name of the source to connect to, or NULL to let the server decide */, const pa_buffer_attr *attr /**< Buffer attributes, or NULL for default */, pa_stream_flags_t flags /**< Additional flags, or 0 for default */);