mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01:00
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:
parent
f9d04ae1ad
commit
73a5e1cb91
@ -25,7 +25,7 @@ namespace AOSound
|
|||||||
{
|
{
|
||||||
return sampleRate;
|
return sampleRate;
|
||||||
}
|
}
|
||||||
bool WriteDataToBuffer(int dwOffset,char* soundData, int dwSoundBytes)
|
bool WriteDataToBuffer(int dwOffset, char* soundData, uint_32 numSoundBytes)
|
||||||
{
|
{
|
||||||
//void* ptr1, * ptr2;
|
//void* ptr1, * ptr2;
|
||||||
//DWORD numBytes1, numBytes2;
|
//DWORD numBytes1, numBytes2;
|
||||||
@ -55,7 +55,7 @@ namespace AOSound
|
|||||||
|
|
||||||
return(false);*/
|
return(false);*/
|
||||||
//if(soundData[0] != 0)
|
//if(soundData[0] != 0)
|
||||||
ao_play(device, soundData, dwSoundBytes);
|
ao_play(device, soundData, numSoundBytes);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ namespace AOSound
|
|||||||
{
|
{
|
||||||
// No blocking inside the csection
|
// No blocking inside the csection
|
||||||
//dsBuffer->GetCurrentPosition((DWORD*)¤tPos, 0);
|
//dsBuffer->GetCurrentPosition((DWORD*)¤tPos, 0);
|
||||||
int numBytesToRender = 256;
|
uint_32 numBytesToRender = 256;
|
||||||
|
|
||||||
if (numBytesToRender >= 256)
|
if (numBytesToRender >= 256)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user