audio_core: hle: mf: re-arrange comments

This commit is contained in:
liushuyu
2019-01-28 21:47:41 -07:00
committed by B3N30
parent 972b527374
commit 4bc6bfd51f
3 changed files with 19 additions and 12 deletions

View File

@ -7,7 +7,7 @@ constexpr std::array<u32, 16> freq_table = {96000, 88200, 64000, 48000, 44100, 3
16000, 12000, 11025, 8000, 7350, 0, 0, 0};
constexpr std::array<u8, 8> channel_table = {0, 1, 2, 3, 4, 5, 6, 8};
u32 ParseADTS(char* buffer, struct ADTSData* out) {
u32 ParseADTS(char* buffer, ADTSData* out) {
u32 tmp = 0;
// sync word 0xfff
@ -40,7 +40,13 @@ u32 ParseADTS(char* buffer, struct ADTSData* out) {
}
// last two bytes of MF AAC decoder user data
u16 MFGetAACTag(struct ADTSData input) {
// Audio object type (5 bits)
// Sample rate profile (4 bits)
// Channel configuration profile (4 bits)
// Frame length flag (1 bit)
// Depends on core coder (1 bit)
// Extension flag (1 bit)
u16 MFGetAACTag(ADTSData input) {
u16 tag = 0;
tag |= input.profile << 11;