[rhythmbox] xfade: increase samplesperbuffer property on audiotestsrc
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] xfade: increase samplesperbuffer property on audiotestsrc
- Date: Mon, 28 Jun 2010 12:00:40 +0000 (UTC)
commit 184a0a5100b8f27271c526667e00df371eb436d2
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Jun 28 21:55:45 2010 +1000
xfade: increase samplesperbuffer property on audiotestsrc
This increases the size of the buffers the adder can produce, meaning that
the output portion of the pipeline processes a smaller number of larger buffers,
reducing cpu consumption a little.
backends/gstreamer/rb-player-gst-xfade.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 0634d4c..7848549 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -3059,7 +3059,7 @@ create_sink (RBPlayerGstXFade *player, GError **error)
/* create silence bin */
player->priv->silencebin = gst_bin_new ("silencebin");
audiotestsrc = gst_element_factory_make ("audiotestsrc", "silence");
- g_object_set (audiotestsrc, "wave", 4, NULL);
+ g_object_set (audiotestsrc, "wave", 4, "samplesperbuffer", 8192, NULL);
audioconvert = gst_element_factory_make ("audioconvert", "silenceconvert");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]