Lime3DS/src/audio_core/hle/adts.h

23 lines
500 B
C++
Raw Normal View History

// Copyright 2019 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <array>
#include "common/common_types.h"
struct ADTSData {
bool MPEG2;
u8 profile;
u8 channels;
u8 channel_idx;
u8 framecount;
u8 samplerate_idx;
u32 length;
u32 samplerate;
};
2019-01-29 05:20:46 +01:00
u32 ParseADTS(char* buffer, struct ADTSData* out);
// last two bytes of MF AAC decoder user data
2019-01-29 05:20:46 +01:00
u16 MFGetAACTag(struct ADTSData input);