diff --git a/src/Backends/Audio/WiiU-Software.cpp b/src/Backends/Audio/WiiU-Software.cpp index fa973492..fe6e7915 100644 --- a/src/Backends/Audio/WiiU-Software.cpp +++ b/src/Backends/Audio/WiiU-Software.cpp @@ -192,8 +192,7 @@ bool AudioBackend_Init(void) AXVoiceDeviceMixData mix_data[6]; memset(mix_data, 0, sizeof(mix_data)); - mix_data[0].bus[0].volume = i == 0 ? 0x8000 : 0; // Channel 1 goes on the left speaker - mix_data[1].bus[0].volume = i == 1 ? 0x8000 : 0; // Channel 2 goes on the right speaker + mix_data[i].bus[0].volume = 0x8000; // Voice 1 goes on the left speaker - voice 2 goes on the right speaker AXSetVoiceDeviceMix(voices[i], AX_DEVICE_TYPE_DRC, 0, mix_data); AXSetVoiceDeviceMix(voices[i], AX_DEVICE_TYPE_TV, 0, mix_data); @@ -243,11 +242,13 @@ bool AudioBackend_Init(void) void AudioBackend_Deinit(void) { - for (unsigned int i = 0; i < 2; ++i) - { - AXFreeVoice(voices[i]); - free(stream_buffers[i]); - } + AXRegisterAppFrameCallback(NULL); + + AXFreeVoice(voices[1]); + AXFreeVoice(voices[0]); + + free(stream_buffers[1]); + free(stream_buffers[0]); free(stream_buffer_long); diff --git a/src/Bullet.cpp b/src/Bullet.cpp index a65e43fb..f3a95bb3 100644 --- a/src/Bullet.cpp +++ b/src/Bullet.cpp @@ -1,5 +1,6 @@ #include "Bullet.h" +#include #include #include "WindowsWrapper.h" diff --git a/src/Draw.cpp b/src/Draw.cpp index 5b492b9d..55e0fc49 100644 --- a/src/Draw.cpp +++ b/src/Draw.cpp @@ -568,7 +568,7 @@ void CortBox2(const RECT *rect, unsigned long col, SurfaceID surf_no) // Dummied-out log function // According to the Mac port, its name really is just "out". -static BOOL out(int unknown) +BOOL out(int unknown) { char unknown2[0x100]; int unknown3; diff --git a/src/Ending.cpp b/src/Ending.cpp index 130f1836..b2b9c3be 100644 --- a/src/Ending.cpp +++ b/src/Ending.cpp @@ -1,5 +1,6 @@ #include "Ending.h" +#include #include #include #include diff --git a/src/MyChar.cpp b/src/MyChar.cpp index 035f9407..b477006f 100644 --- a/src/MyChar.cpp +++ b/src/MyChar.cpp @@ -1,5 +1,6 @@ #include "MyChar.h" +#include #include #include "WindowsWrapper.h" diff --git a/src/MycParam.cpp b/src/MycParam.cpp index 969f4419..318630d6 100644 --- a/src/MycParam.cpp +++ b/src/MycParam.cpp @@ -1,5 +1,6 @@ #include "MycParam.h" +#include #include #include diff --git a/src/NpcAct120.cpp b/src/NpcAct120.cpp index 2f61bf63..5bfc1eb0 100644 --- a/src/NpcAct120.cpp +++ b/src/NpcAct120.cpp @@ -1,5 +1,6 @@ #include "NpcAct.h" +#include #include #include "WindowsWrapper.h" diff --git a/src/TextScr.cpp b/src/TextScr.cpp index e3ba2079..fb60b619 100644 --- a/src/TextScr.cpp +++ b/src/TextScr.cpp @@ -1,5 +1,6 @@ #include "TextScr.h" +#include #include #include #include