[vlc-commits] wasapi: add TRUEHD/MLP support
Thomas Guillem
git at videolan.org
Fri Oct 7 12:10:18 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct 5 15:42:39 2016 +0200| [3a210713679106c355b531da3d5a711b19a3d840] | committer: Thomas Guillem
wasapi: add TRUEHD/MLP support
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3a210713679106c355b531da3d5a711b19a3d840
---
modules/audio_output/wasapi.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index b49f0ed..050a8c9 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -58,6 +58,11 @@ DEFINE_GUID(_KSDATAFORMAT_SUBTYPE_IEC61937_DOLBY_DIGITAL_PLUS,
0x000a, 0x0cea, 0x0010, 0x80, 0x00,
0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
+/* 0000000c-0cea-0010-8000-00aa00389b71 */
+DEFINE_GUID(_KSDATAFORMAT_SUBTYPE_IEC61937_DOLBY_MLP,
+ 0x000c, 0x0cea, 0x0010, 0x80, 0x00,
+ 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
+
static BOOL CALLBACK InitFreq(INIT_ONCE *once, void *param, void **context)
{
(void) once; (void) context;
@@ -261,8 +266,12 @@ static void vlc_HdmiToWave(WAVEFORMATEXTENSIBLE_IEC61937 *restrict wf_iec61937,
wf->Format.nChannels = 2;
wf->dwChannelMask = KSAUDIO_SPEAKER_5POINT1;
break;
- /* TODO case VLC_CODEC_TRUEHD */
- /* TODO case VLC_CODEC_MLP */
+ case VLC_CODEC_TRUEHD:
+ case VLC_CODEC_MLP:
+ wf->SubFormat = _KSDATAFORMAT_SUBTYPE_IEC61937_DOLBY_MLP;
+ wf->Format.nChannels = 8;
+ wf->dwChannelMask = KSAUDIO_SPEAKER_7POINT1;
+ break;
default:
vlc_assert_unreachable();
}
More information about the vlc-commits
mailing list