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);