summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;