MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / LoadADPCM

Method LoadADPCM

Source/HLEAudio/AudioHLEProcessor.cpp:795–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795void AudioHLEState::LoadADPCM( u32 address, u16 count )
796{
797 u32 loops( count / 16 );
798
799 const u16 *table( (const u16 *)(rdram + address) );
800 for (u32 x = 0; x < loops; x++)
801 {
802 ADPCMTable[0x1+(x<<3)] = table[0];
803 ADPCMTable[0x0+(x<<3)] = table[1];
804
805 ADPCMTable[0x3+(x<<3)] = table[2];
806 ADPCMTable[0x2+(x<<3)] = table[3];
807
808 ADPCMTable[0x5+(x<<3)] = table[4];
809 ADPCMTable[0x4+(x<<3)] = table[5];
810
811 ADPCMTable[0x7+(x<<3)] = table[6];
812 ADPCMTable[0x6+(x<<3)] = table[7];
813 table += 8;
814 }
815}
816
817void AudioHLEState::Interleave( u16 outaddr, u16 laddr, u16 raddr, u16 count )
818{

Callers 3

LOADADPCMFunction · 0.80
LOADADPCM2Function · 0.80
LOADADPCM3Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected