From c5d3f0dfb585d5a806e013d20e4ac2a473232920 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Sun, 4 Nov 2018 22:03:25 -0500 Subject: [PATCH] Added HwopusHeader struct. --- nx/include/switch/services/hwopus.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nx/include/switch/services/hwopus.h b/nx/include/switch/services/hwopus.h index 212a46c9..1d6c54c3 100644 --- a/nx/include/switch/services/hwopus.h +++ b/nx/include/switch/services/hwopus.h @@ -14,6 +14,13 @@ typedef struct { TransferMemory tmem; } HwopusDecoder; +///< This structure is the start of opusin for \ref hwopusDecodeInterleaved, with the actual opus packet following this. +///< These fields are big-endian. +typedef struct { + u32 size; ///< Size of the packet following this header. + u32 unk; ///< Unknown, can be left at zero. +} HwopusHeader; + Result hwopusDecoderInitialize(HwopusDecoder* decoder, s32 SampleRate, s32 ChannelCount); void hwopusDecoderExit(HwopusDecoder* decoder);