summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-06-08 22:02:48 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-06-08 22:02:48 +0200
commit8038f2149215607f58078503c4afac35db11fae9 (patch)
tree354c5b680070d3e09976163b7b074b7f880d3b34
parentd11a3e9505338513f1aed652a1d5fb3aed7dd119 (diff)
added display of multichannel info in statusbar
-rw-r--r--plugins/gtkui/gtkui.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index d03006c9..00b810e6 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -149,7 +149,15 @@ update_songinfo (gpointer ctx) {
int mindur = duration / 60;
int secdur = duration - mindur * 60;
- const char *mode = c->channels == 1 ? _("Mono") : _("Stereo");
+ const char *mode;
+ char temp[20];
+ if (c->channels <= 2) {
+ c->channels == 1 ? _("Mono") : _("Stereo");
+ }
+ else {
+ snprintf (temp, sizeof (temp), "%dch Multichannel", c->channels);
+ mode = temp;
+ }
int samplerate = c->samplerate;
int bitspersample = c->bps;
songpos = playpos;