aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-10-26 23:55:17 +0100
committerMax Kellermann <max@duempel.org>2015-10-27 11:44:23 +0100
commit4b1630e1ec1fe5cbecc013a3e1487d9f43fcdd2f (patch)
tree9aad6e61c187330cff2e4f1651c5c128555eae41
parent41e63031b0880c3fb9fd0b3357ac3af593ccb505 (diff)
downloadmpd-4b1630e1ec1fe5cbecc013a3e1487d9f43fcdd2f.tar.gz
mpd-4b1630e1ec1fe5cbecc013a3e1487d9f43fcdd2f.tar.xz
mpd-4b1630e1ec1fe5cbecc013a3e1487d9f43fcdd2f.zip
AudioFormat: define that channel order follows the FLAC convention
Basic definition to solve http://bugs.musicpd.org/view.php?id=3147 and http://bugs.musicpd.org/view.php?id=3255
-rw-r--r--src/AudioFormat.hxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/AudioFormat.hxx b/src/AudioFormat.hxx
index a00e761a8..e30e575a3 100644
--- a/src/AudioFormat.hxx
+++ b/src/AudioFormat.hxx
@@ -82,8 +82,19 @@ struct AudioFormat {
SampleFormat format;
/**
- * The number of channels. Only mono (1) and stereo (2) are
- * fully supported currently.
+ * The number of channels.
+ *
+ * Channel order follows the FLAC convention
+ * (https://xiph.org/flac/format.html):
+ *
+ * - 1 channel: mono
+ * - 2 channels: left, right
+ * - 3 channels: left, right, center
+ * - 4 channels: front left, front right, back left, back right
+ * - 5 channels: front left, front right, front center, back/surround left, back/surround right
+ * - 6 channels: front left, front right, front center, LFE, back/surround left, back/surround right
+ * - 7 channels: front left, front right, front center, LFE, back center, side left, side right
+ * - 8 channels: front left, front right, front center, LFE, back left, back right, side left, side right
*/
uint8_t channels;