I used several sound effects for my project from free resources on the internet.
While all is running fine on Windows, I noticed problems with some WAVE files on MacOS.
With this PB example code:
Code: Select all
If InitSound() = 0
MessageRequester("Error", "Sound system is not available", 0)
End
EndIf
SoundFileName$ = OpenFileRequester("Choose a .wav file", "", "Wave files|*.wav",0)
If SoundFileName$
If LoadSound(5, SoundFileName$)
PlaySound(5);, #PB_Sound_Loop)
MessageRequester("Sound", "Playing the sound (loop)..."+#LF$+"Click to quit..", 0)
Else
MessageRequester("Error", "Can't load the sound.", 0)
EndIf
EndIf
End
http://soundbible.com/1964-Small-Crowd-Applause.html (SMALL_CROWD_APPLAUSE-Yannick_Lemieux-1268806408.wav)
(interesting is, that with activated #PB_Sound_Loop flag this memory access error isn't occurring, but a "wrong" sounding effect is playing then...)
This one also don't sound correctly (but don't crash with the memory access error):
Laugh - Kid_Laugh-Mike_Koenig-1673908713.wav / http://soundbible.com/2026-Kid-Laugh.html
Anyone knows more about incompatibilities with WAV sound loading on MacOS?
If so, can you suggest some (free) tools for converting into a 'right' format (specific WAV type?) which is playing well on Windows and MacOS?
Btw. other sound files are working well on MacOS, like this one:
Applause2 - Applause-SoundBible.com-151138312.wav / http://soundbible.com/988-Applause.html
Cheer - 5_Sec_Crowd_Cheer-Mike_Koenig-1562033255.wav / http://soundbible.com/1700-5-Sec-Crowd-Cheer.html
Doing - NFF-doing.wav / http://www.noiseforfun.com/2012-sound-effects/doing/
Frog - NFF-frog.wav / http://www.noiseforfun.com/2012-sound-effects/frog/
Honest - NFF-honest.wav / http://www.noiseforfun.com/2012-sound-effects/honest/
TickTock - Tick Tock-SoundBible.com-1165545065.wav / http://soundbible.com/1258-Tick-Tock.html
Wrong - NFF-wrong-02.wav / http://www.noiseforfun.com/2012-sound-effects/wrong-02/
Yay - 1_person_cheering-Jett_Rifkin-1851518140.wav / http://soundbible.com/2103-1-Person-Cheering.html
Thank you for any help!