MCPcopy Create free account
hub / github.com/doldecomp/mkdd / startAudioTask

Function startAudioTask

src/Osako/system.cpp:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 JKRSolidHeap *mspAudioHeap;
55
56 void startAudioTask(void* arg) {
57 // this either doesn't use the inline or it got recasted to u8* for whatever reason
58 u8 *audioFile = (u8 *)JKRDvdToMainRam("AudioRes/GCKart.baa", nullptr, EXPAND_SWITCH_DECOMPRESS,
59 0, SequenceApp::ptr()->getHeap(), JKRDvdRipper::ALLOC_DIR_BOTTOM, 0, nullptr, nullptr);
60 GetGameAudioMain()->init(mspAudioHeap, SystemData::scAudioAramSize, audioFile, 0, 0);
61 delete audioFile;
62 gSystemRecord.applyAudioSetting();
63 }
64
65 void init() {
66#ifdef REGION_EU

Callers

nothing calls this directly

Calls 4

JKRDvdToMainRamFunction · 0.85
applyAudioSettingMethod · 0.80
getHeapMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected