Re: EuSFML2 Updated
- Posted by Icy_Viking Mar 06, 2017
- 1357 views
ChrisB said...
Hi, in the audio demo (AudDemo.exw), you were looping round too quickly, and consequently you were trying to play the sound over and over too many times. If you add
integer played = 0 --and if played = 0 then sfMusic_play(snd) played = 1 end if
Then it works fine
Cheers chris
Thanks. However whenever I try to run the Audio now demo now, I get an error saying machine level exception sfMusic_setVolume, line 200. I'm not sure why this is coming up. The code is correct.
public constant xsfMusic_setVolume = define_c_proc(aud,"sfMusic_setVolume",{C_POINTER,C_FLOAT}) public procedure sfMusic_setVolume(atom mus,atom vol) c_proc(xsfMusic_setVolume,{mus,vol}) --this is line 200 end procedure
I'm on Windows 7 Ultimate 64-bit. I assume its a bug, but I'm not sure what would be causing it.