PlaySound(#sound,DirectXEffekt,para1,para2)
Posted: Tue Sep 07, 2004 3:17 pm
You know, Direct X supports a couple of effects since DirectX 8. It would improve the quality of every game written in PureBasic to be able to use these effects. I imagine something like this:
Code: Select all
InitSound()
InitSoundEffects()
LoadSound(0,"step.wav")
Playsound(0,#PB_ECHO,100,10) ;Delay 100, count 10, we go through a tunnel
Playsound(0,#PB_ECHO,2000,3) ; Delay 2000, count 3 - We are in the mountains!
Playsound(0,#PB_DISTORTION,100,0) ; we hear something through a mobile phone!
make it real!- Easy but very fast 2D game support trough dedicated libraries (DirectX, SDL, ...)