[gnome-control-center] sound: Support more channels in speaker test



commit c4b4b8bdc5534108668d7c2c0a4d4779f965ea24
Author: David Henningsson <david henningsson canonical com>
Date:   Wed Jun 3 10:11:00 2015 +0000

    sound: Support more channels in speaker test
    
    Add support for mono, front-left-of-center and
    right-left-of-center channels in speaker test dialogue.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750324

 panels/sound/gvc-speaker-test.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/panels/sound/gvc-speaker-test.c b/panels/sound/gvc-speaker-test.c
index 1d87113..279a0f6 100644
--- a/panels/sound/gvc-speaker-test.c
+++ b/panels/sound/gvc-speaker-test.c
@@ -172,6 +172,12 @@ sound_name (pa_channel_position_t position)
                 return "audio-channel-side-left";
         case PA_CHANNEL_POSITION_SIDE_RIGHT:
                 return "audio-channel-side-right";
+        case PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER:
+                return "audio-channel-front-left-of-center";
+        case PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER:
+                return "audio-channel-front-right-of-center";
+        case PA_CHANNEL_POSITION_MONO:
+                return "audio-channel-mono";
         default:
                 return NULL;
         }
@@ -199,6 +205,12 @@ icon_name (pa_channel_position_t position, gboolean playing)
                 return playing ? "audio-speaker-left-side-testing" : "audio-speaker-left-side";
         case PA_CHANNEL_POSITION_SIDE_RIGHT:
                 return playing ? "audio-speaker-right-side-testing" : "audio-speaker-right-side";
+        case PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER:
+                return playing ? "audio-speaker-front-left-of-center-testing" : 
"audio-speaker-front-left-of-center";
+        case PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER:
+                return playing ? "audio-speaker-front-right-of-center-testing" : 
"audio-speaker-front-right-of-center";
+        case PA_CHANNEL_POSITION_MONO:
+                return playing ? "audio-speaker-mono-testing" : "audio-speaker-mono";
         default:
                 return NULL;
         }


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