PB 5.31 beta 3 x86 Windows:
[edit] Updated to B4 - Bug appears in Windows 8.1 but seemingly not in Windows 7
The first time a sound is played the volume is too low. Subsequent calls to PlaySound() are ok though. Please accept this humble snippet, offered for your debugging pleasure:
Code: Select all
InitNetwork()
file$ = GetTemporaryDirectory()+"click.wav"
If FileSize(file$) = -1
Debug "downloading test file"
If Not ReceiveHTTPFile("http://lloydsplace.com/click.wav", file$)
Debug "could not download sound"
End
EndIf
Else
Debug "test file found"
EndIf
InitSound()
LoadSound(0,file$)
SoundVolume(0, 100) ; This doesn't help
PlaySound(0, 0, 100) ; First play, volume is quite low
Delay(1000)
PlaySound(0, 0, 100) ; Second play, volume is correct
Delay(1000)


