PlaySound(#sound,DirectXEffekt,para1,para2)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?

Would you like to have perfect realtime sound effects?

Yes
10
38%
Yes
10
38%
No
3
12%
No
3
12%
 
Total votes: 26

Kazmirzak
User
User
Posts: 92
Joined: Fri Jun 18, 2004 5:44 pm
Location: Germany

PlaySound(#sound,DirectXEffekt,para1,para2)

Post 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!
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

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

Post 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.
Sunny
User
User
Posts: 16
Joined: Wed Feb 04, 2004 7:46 pm
Location: Germany | Hannover

Post 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.
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post 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)" ;-)
Post Reply