Adds a sound file to the script and returns a soundSequence object

'AddSound' should be used to link a certain sound with some event in your script. The SoundSequence object returned will allow you to time the start and stop of the sound to actions occurring in this same script. The optional parameters in 'AddSound' allow 3D sound effects. Basically the location of the model relative to the camera will determine how the sound is played. See our sound demo elsewere on our site.

Syntax:

soundSequence addSound(String soundname,model modelinstance, Stirng bonename)
Return: a soundSequence object
Parameters:
soundname

The short name of the sound to be added

modelinstance

(optional) The short name of the model you want to use for 3D sound effects. You create the model instance through a call to script::addModel.

bonename

(optional) The name of the bone within the model given in modelName you want to use as a 'pointer' for the 3D sound cone.

See also:

Class script | Class soundSequence | Class soundFile | Class model | Class bone |

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.