Re: EuSFML2 Updated

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu