Cleanup some audio system code.

This commit is contained in:
Dr. Chat
2015-06-03 11:12:55 -05:00
parent 954b67df78
commit 826609cd60
6 changed files with 96 additions and 68 deletions

View File

@@ -39,7 +39,7 @@ class AudioDecoder;
// http://pastebin.com/9amqJ2kQ
struct XMAContextData {
static const uint32_t kSize = 64;
static const uint32_t kBytesPerBlock = 2048;
static const uint32_t kBytesPerPacket = 2048;
static const uint32_t kSamplesPerFrame = 512;
static const uint32_t kSamplesPerSubframe = 128;
@@ -155,6 +155,7 @@ class AudioSystem {
void DecoderThreadMain();
void ProcessXmaContext(XMAContext& context, XMAContextData& data);
int PrepareXMAPacket(XMAContext& context, XMAContextData& data);
static uint64_t MMIOReadRegisterThunk(void* ppc_context, AudioSystem* as,
uint32_t addr) {