diff options
| author | 2019-03-07 05:43:06 -0500 | |
|---|---|---|
| committer | 2019-03-07 05:48:35 -0500 | |
| commit | 960057cba0b9b66cadbd64b83516a442235ddb32 (patch) | |
| tree | 14b1d648f19796cee4e0d3e83209d483dc324f36 /src | |
| parent | service/audio/hwopus: Move Opus packet header out of the IHardwareOpusDecoder... (diff) | |
| download | yuzu-960057cba0b9b66cadbd64b83516a442235ddb32.tar.gz yuzu-960057cba0b9b66cadbd64b83516a442235ddb32.tar.xz yuzu-960057cba0b9b66cadbd64b83516a442235ddb32.zip | |
service/audio/hwopus: Provide a name for the second word of OpusPacketHeader
This indicates the entropy coder's final range.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/audio/hwopus.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp index 61af2e6d6..aeaa2623b 100644 --- a/src/core/hle/service/audio/hwopus.cpp +++ b/src/core/hle/service/audio/hwopus.cpp | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | #include <opus.h> | 10 | #include <opus.h> |
| 11 | 11 | ||
| 12 | #include "common/common_funcs.h" | 12 | #include "common/assert.h" |
| 13 | #include "common/logging/log.h" | 13 | #include "common/logging/log.h" |
| 14 | #include "core/hle/ipc_helpers.h" | 14 | #include "core/hle/ipc_helpers.h" |
| 15 | #include "core/hle/kernel/hle_ipc.h" | 15 | #include "core/hle/kernel/hle_ipc.h" |
| @@ -24,8 +24,10 @@ struct OpusDeleter { | |||
| 24 | }; | 24 | }; |
| 25 | 25 | ||
| 26 | struct OpusPacketHeader { | 26 | struct OpusPacketHeader { |
| 27 | // Packet size in bytes. | ||
| 27 | u32_be size; | 28 | u32_be size; |
| 28 | INSERT_PADDING_WORDS(1); | 29 | // Indicates the final range of the codec's entropy coder. |
| 30 | u32_be final_range; | ||
| 29 | }; | 31 | }; |
| 30 | static_assert(sizeof(OpusPacketHeader) == 0x8, "OpusHeader is an invalid size"); | 32 | static_assert(sizeof(OpusPacketHeader) == 0x8, "OpusHeader is an invalid size"); |
| 31 | 33 | ||