summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-25 00:11:49 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-25 00:11:49 +0000
commit040a227d300033f8a103dc6eb67847286131d9b7 (patch)
tree54093eaad6186817d1ee744d3f299f93ea49b475 /src/lib/util.cc
parentdcd968d6d64d645816af0efbcd2f928128c95b9f (diff)
Some tidying up, add channel selector to Audio dialog.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 4ee304600..f807bf329 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -898,3 +898,23 @@ cpu_info ()
return info;
}
+
+string
+audio_channel_name (int c)
+{
+ assert (MAX_AUDIO_CHANNELS == 6);
+
+ /* TRANSLATORS: these are the names of audio channels; Lfe (sub) is the low-frequency
+ enhancement channel (sub-woofer)./
+ */
+ string const channels[] = {
+ "Left",
+ "Right",
+ "Centre",
+ "Lfe (sub)",
+ "Left surround",
+ "Right surround",
+ };
+
+ return channels[c];
+}