From 45c7426c3fa4079e8cb53140b330b08b40cdfca5 Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Tue, 2 Jun 2015 14:23:37 +0200 Subject: [PATCH] sound: Add front-left-of-center, front-right-of-center and mono This will enable icon and sound designers to add samples and icons representing these channels. Signed-off-by: David Henningsson --- panels/sound/gvc-speaker-test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; } -- 1.9.1