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
This commit is contained in:
Maarten ter Huurne 2008-08-31 23:20:36 +00:00
parent f9d04ae1ad
commit 73a5e1cb91
1 changed files with 3 additions and 3 deletions

View File

@ -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*)&currentPos, 0);
int numBytesToRender = 256;
uint_32 numBytesToRender = 256;
if (numBytesToRender >= 256)
{