pcm/Order: new library to convert from FLAC to ALSA channel order
This new library is integrated in the PcmExport class and (if enabled) converts MPD's channel order (= FLAC channel order) to ALSA channel order. This fixes: http://bugs.musicpd.org/view.php?id=3147 and http://bugs.musicpd.org/view.php?id=3255
This commit is contained in:
@@ -711,7 +711,7 @@ AlsaOutput::SetupOrDop(AudioFormat &audio_format, Error &error)
|
||||
|
||||
pcm_export->Open(audio_format.format,
|
||||
audio_format.channels,
|
||||
dop2, shift8, packed, reverse_endian);
|
||||
true, dop2, shift8, packed, reverse_endian);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -537,7 +537,7 @@ oss_probe_sample_format(int fd, SampleFormat sample_format,
|
||||
*oss_format_r = oss_format;
|
||||
|
||||
#ifdef AFMT_S24_PACKED
|
||||
pcm_export.Open(sample_format, 0, false, false,
|
||||
pcm_export.Open(sample_format, 0, true, false, false,
|
||||
oss_format == AFMT_S24_PACKED,
|
||||
oss_format == AFMT_S24_PACKED &&
|
||||
!IsLittleEndian());
|
||||
|
Reference in New Issue
Block a user