summaryrefslogtreecommitdiff
path: root/plugins/sndfile
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-10-19 18:00:11 +0200
committerGravatar waker <wakeroid@gmail.com>2012-10-19 18:00:11 +0200
commitd9ddcfb0cc68b290e9f6d8c5c6b1babf969e5337 (patch)
treed3c7776bc1238e276e603622d45346f6b92eba3f /plugins/sndfile
parent63a92fa590335e32d5c35fe3036a5242e9cc239d (diff)
channelmask fix in sndfile plugin
Diffstat (limited to 'plugins/sndfile')
-rw-r--r--plugins/sndfile/sndfile.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/plugins/sndfile/sndfile.c b/plugins/sndfile/sndfile.c
index 49571642..0eb4f50e 100644
--- a/plugins/sndfile/sndfile.c
+++ b/plugins/sndfile/sndfile.c
@@ -207,13 +207,17 @@ sndfile_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
_info->fmt.channels = inf.channels;
_info->fmt.samplerate = inf.samplerate;
- int channel_map [inf.channels];
- int cmdres = sf_command (info->ctx, SFC_GET_CHANNEL_MAP_INFO, channel_map, sizeof (channel_map)) ;
- if (cmdres != SF_FALSE) {
- // channel map found, convert to channel mask
- _info->fmt.channelmask = wavex_gen_channel_mask (channel_map, inf.channels);
- }
- else {
+// FIXME: streamer and maybe output plugins need to be fixed to support
+// arbitrary channelmask
+//
+// int channel_map [inf.channels];
+// int cmdres = sf_command (info->ctx, SFC_GET_CHANNEL_MAP_INFO, channel_map, sizeof (channel_map)) ;
+// if (cmdres != SF_FALSE) {
+// // channel map found, convert to channel mask
+// _info->fmt.channelmask = wavex_gen_channel_mask (channel_map, inf.channels);
+// }
+// else
+ {
// channel map not found, generate from channel number
for (int i = 0; i < inf.channels; i++) {
_info->fmt.channelmask |= 1 << i;