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

Method applyAudioSetting

src/Osako/SystemRecord.cpp:50–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void SystemRecord::applyAudioSetting()
51{
52 if (OSGetSoundMode() == 0)
53 {
54 mOptions &= ~0x3;
55 mOptions |= 1;
56 }
57 else if ((mOptions & 3) == 1)
58 {
59 mOptions &= ~0x3;
60 }
61
62 switch (mOptions & 3)
63 {
64 case 1:
65 GameAudio::Main::getAudio()->setOutputMode(0);
66 break;
67 case 0:
68 GameAudio::Main::getAudio()->setOutputMode(1);
69 break;
70 case 2:
71 GameAudio::Main::getAudio()->setOutputMode(2);
72 break;
73 }
74
75 GameAudio::Main::getAudio()->setMasterVolume(mVolume);
76}
77
78void SystemRecord::crypt(u16 seed)
79{

Callers 3

storeMethod · 0.80
calcFunction · 0.80
startAudioTaskFunction · 0.80

Calls 3

OSGetSoundModeFunction · 0.85
setOutputModeMethod · 0.80
setMasterVolumeMethod · 0.80

Tested by

no test coverage detected