Page 1 of 1

PlaySound(#sound,DirectXEffekt,para1,para2)

Posted: Tue Sep 07, 2004 3:17 pm
by Kazmirzak
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!
- Easy but very fast 2D game support trough dedicated libraries (DirectX, SDL, ...)
make it real!

Re: PlaySound(#sound,DirectXEffekt,para1,para2)

Posted: Wed Sep 08, 2004 10:16 pm
by Ralf
would be nice. but please note that PB is only based on directx 7 as i know right!? maybe we should ask if people want to have a PB based on directx 8++ or directx9++ :-)

atm i am happy with the DX7 support in PB.

Posted: Thu Sep 09, 2004 4:42 pm
by Sunny
The soundvolume to change would be nice. Now every sound is played with the same volume. Maybe add a parameter where you can give values from 0 to 100, so all in %.
And the possibility to play more than one sound at the same moment.

Posted: Thu Sep 09, 2004 10:07 pm
by Ralf
Sunny wrote:The soundvolume to change would be nice. Now every sound is played with the same volume. Maybe add a parameter where you can give values from 0 to 100, so all in %.
And the possibility to play more than one sound at the same moment.
To change the volume, check "SoundVolume(#Sound, volume)" ;-)