[pulseaudio-commits] 2 commits - src/pulse src/pulsecore

Arun Raghavan arun at kemper.freedesktop.org
Tue Jan 12 02:02:14 PST 2016


 src/pulse/stream.h            |    9 ++++++++-
 src/pulsecore/sink-input.c    |    2 ++
 src/pulsecore/source-output.c |    2 ++
 3 files changed, 12 insertions(+), 1 deletion(-)

New commits:
commit c3c4937b4f3bd83a34864ec0a89b7b9113778da8
Author: Arun Raghavan <git at arunraghavan.net>
Date:   Tue Jan 12 15:31:06 2016 +0530

    stream: Clarify pa_stream_writable_size() documentation

diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 70fa415..ab233d5 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -588,7 +588,14 @@ int pa_stream_peek(
  * calling pa_stream_peek(). */
 int pa_stream_drop(pa_stream *p);
 
-/** Return the number of bytes that may be written using pa_stream_write(). */
+/** Return the number of bytes requested by the server that have not yet
+ * been written.
+ *
+ * It is possible to write more than this amount, up to the stream's
+ * buffer_attr.maxlength bytes. This is usually not desirable, though, as
+ * it would increase stream latency to be higher than requested
+ * (buffer_attr.tlength).
+ */
 size_t pa_stream_writable_size(pa_stream *p);
 
 /** Return the number of bytes that may be read using pa_stream_peek(). */

commit 2ae2dab307206b393f0ada6c02464f5416731b3f
Author: Arun Raghavan <git at arunraghavan.net>
Date:   Mon Jan 11 12:52:10 2016 +0530

    sink-input, source-output: Add some debug output on start_move()

diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index 539ae17..8ec63b5 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
@@ -1580,6 +1580,8 @@ int pa_sink_input_start_move(pa_sink_input *i) {
     if ((r = pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_MOVE_START], i)) < 0)
         return r;
 
+    pa_log_debug("Starting to move sink input %u from '%s'", (unsigned) i->index, i->sink->name);
+
     /* Kill directly connected outputs */
     while ((o = pa_idxset_first(i->direct_outputs, NULL))) {
         pa_assert(o != p);
diff --git a/src/pulsecore/source-output.c b/src/pulsecore/source-output.c
index 9000972..c73c548 100644
--- a/src/pulsecore/source-output.c
+++ b/src/pulsecore/source-output.c
@@ -1230,6 +1230,8 @@ int pa_source_output_start_move(pa_source_output *o) {
     if ((r = pa_hook_fire(&o->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_MOVE_START], o)) < 0)
         return r;
 
+    pa_log_debug("Starting to move source output %u from '%s'", (unsigned) o->index, o->source->name);
+
     origin = o->source;
 
     pa_idxset_remove_by_data(o->source->outputs, o, NULL);



More information about the pulseaudio-commits mailing list