[gnac/devel] Added textual representation of channels' numbers
- From: Benoît Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Added textual representation of channels' numbers
- Date: Mon, 1 Nov 2010 20:51:17 +0000 (UTC)
commit 13db70cf93002d672c24729bd2e44555a23db790
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date: Mon Nov 1 20:50:47 2010 +0000
Added textual representation of channels' numbers
src/gnac-properties.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnac-properties.c b/src/gnac-properties.c
index 729a657..4fa101d 100644
--- a/src/gnac-properties.c
+++ b/src/gnac-properties.c
@@ -385,7 +385,8 @@ gnac_properties_get_property_from_value(const gchar *name,
{
gint val = g_value_get_int(value);
if (val == 0) return NULL;
- else return g_strdup_printf("%d", val);
+ else return g_strdup_printf("%d%s", val,
+ val == 1 ? " (mono)" : val == 2 ? " (stereo)" : "");
}
if (LIBGNAC_METADATA_TAG_IS_TRACK_GAIN(name) ||
LIBGNAC_METADATA_TAG_IS_TRACK_PEAK(name))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]