Play Sound Improvements?

Ideas for Game Editor evolution.

Play Sound Improvements?

Postby jazz_e_bob » Sun Oct 26, 2003 10:08 am

Set loop to infinite.

Set pan and volume without restarting the sound.

(This way the pan and volume of a sound could track an actors position on the screen. 8) )
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby jazz_e_bob » Sun Oct 26, 2003 10:10 am

You would also need a way to stop the sound when the actor was destroyed...
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby jazz_e_bob » Sun Oct 26, 2003 6:13 pm

:D

OK

PlaySound returns a handle to that sound (or 0 for error).

Once playing you can adjust volume and pan on that channel.

setPan(chan, amount);
setVol(chan, amount);
setMute(chan, value);

8) Another pretty standard item is the mute switch. Lots of cool effects to be had with one of these...

Ultimately you want to build a sophisticated sample playback system that includes pitch and even envelope control... later down the track maybe? :)

setPitch(chan, amount);
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby makslane » Sun Oct 26, 2003 10:09 pm

PlaySound will can returns the channel to do this
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest