service/audio/hwopus: Provide a name for the second word of OpusPacketHeader

This indicates the entropy coder's final range.
This commit is contained in:
Lioncash 2019-03-07 05:43:06 -05:00
parent d41d85766f
commit 960057cba0
1 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#include <opus.h>
#include "common/common_funcs.h"
#include "common/assert.h"
#include "common/logging/log.h"
#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/hle_ipc.h"
@ -24,8 +24,10 @@ struct OpusDeleter {
};
struct OpusPacketHeader {
// Packet size in bytes.
u32_be size;
INSERT_PADDING_WORDS(1);
// Indicates the final range of the codec's entropy coder.
u32_be final_range;
};
static_assert(sizeof(OpusPacketHeader) == 0x8, "OpusHeader is an invalid size");