This commit is contained in:
wheremyfoodat 2024-05-01 16:20:24 +03:00
parent e4b81d61a4
commit 6a424a7a66

View file

@ -12,7 +12,7 @@ namespace Audio::AAC {
};
}
// Enum values from Citra and struct definitions based off Citra
// Enum values and struct definitions based off Citra
namespace Command {
enum : u16 {
Init = 0, // Initialize encoder/decoder
@ -46,12 +46,12 @@ namespace Audio::AAC {
}
struct DecodeResponse {
u32_le sampleRate = SampleRate::Rate48000;
u32_le channelCount = 0;
u32_le size = 0;
u32_le unknown1 = 0;
u32_le unknown2 = 0;
u32_le sampleCount = 0;
u32_le sampleRate;
u32_le channelCount;
u32_le size;
u32_le unknown1;
u32_le unknown2;
u32_le sampleCount;
};
struct Message {
@ -61,11 +61,11 @@ namespace Audio::AAC {
// Info on the AAC request
union {
std::array<u8, 24> commandData = {};
std::array<u8, 24> commandData{};
DecodeResponse decodeResponse;
};
};
static_assert(sizeof(Message) == 32);
static_assert(std::is_trivially_copyable<Message>());
} // namespace Audio::AAC
} // namespace Audio::AAC