From 73a5e1cb9191c6dd5bfb80d8f1d7e4cb1420d36f Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Sun, 31 Aug 2008 23:20:36 +0000 Subject: [PATCH] ao_play() uses "uint_32" as the type for the byte count, so use that in the calling code as well. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@416 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp index c6e959d368..fbdb2eb5ef 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/AOSoundStream.cpp @@ -25,7 +25,7 @@ namespace AOSound { return sampleRate; } - bool WriteDataToBuffer(int dwOffset,char* soundData, int dwSoundBytes) + bool WriteDataToBuffer(int dwOffset, char* soundData, uint_32 numSoundBytes) { //void* ptr1, * ptr2; //DWORD numBytes1, numBytes2; @@ -55,7 +55,7 @@ namespace AOSound return(false);*/ //if(soundData[0] != 0) - ao_play(device, soundData, dwSoundBytes); + ao_play(device, soundData, numSoundBytes); return true; } @@ -74,7 +74,7 @@ namespace AOSound { // No blocking inside the csection //dsBuffer->GetCurrentPosition((DWORD*)¤tPos, 0); - int numBytesToRender = 256; + uint_32 numBytesToRender = 256; if (numBytesToRender >= 256) {