foxygit / fake-08-xbox360 Log in
commit 7681ff18cc319e7c7e813f25942d7697966cbf10
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Apr 28 07:47:46 2021 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Apr 28 07:47:46 2021 -0600

    Enable sound on wii u
---
 platform/wiiu/source/WiiUHost.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/platform/wiiu/source/WiiUHost.cpp b/platform/wiiu/source/WiiUHost.cpp
index 71ed7a3..24aeed9 100644
--- a/platform/wiiu/source/WiiUHost.cpp
+++ b/platform/wiiu/source/WiiUHost.cpp
@@ -99,7 +99,7 @@ bool audioInitialized = false;
 void audioCleanup(){
     audioInitialized = false;

-    //SDL_CloseAudioDevice(dev);
+    SDL_CloseAudioDevice(dev);
 }

 void FillAudioDeviceBuffer(void* UserData, Uint8* DeviceBuffer, int Length)
@@ -111,7 +111,6 @@ void audioSetup(){
     //modifed from SDL docs: https://wiki.libsdl.org/SDL_OpenAudioDevice

     //Audio plays but is wrong. maybe a problem with sample rate or endian-ness? haven't investigated thoroughly
-/*
     SDL_memset(&want, 0, sizeof(want)); // or SDL_zero(want)
     want.freq = SAMPLERATE;
     want.format = AUDIO_S16SYS;
@@ -131,7 +130,6 @@ void audioSetup(){

         audioInitialized = true;
     }
-    */
 }