[banshee] [libbanshee] Set the directsoundsink volume to 1.0



commit 95ddeb8b434aac7a9d7843d83067a43b7d3e3322
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Jun 8 17:17:54 2009 -0500

    [libbanshee] Set the directsoundsink volume to 1.0
---
 libbanshee/banshee-player-pipeline.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libbanshee/banshee-player-pipeline.c b/libbanshee/banshee-player-pipeline.c
index 349e2ec..d246c92 100644
--- a/libbanshee/banshee-player-pipeline.c
+++ b/libbanshee/banshee-player-pipeline.c
@@ -197,7 +197,9 @@ _bp_pipeline_construct (BansheePlayer *player)
     audiosink = gst_element_factory_make ("gconfaudiosink", "audiosink");
     if (audiosink == NULL) {
         audiosink = gst_element_factory_make ("directsoundsink", "audiosink");
-        if (audiosink == NULL) {
+        if (audiosink != NULL) {
+            g_object_set (G_OBJECT (audiosink), "volume", 1.0, NULL);
+        } else {
             audiosink = gst_element_factory_make ("autoaudiosink", "audiosink");
             if (audiosink == NULL) {
                 audiosink = gst_element_factory_make ("alsasink", "audiosink");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]