You can attach a sound to each emitter that will be
played automatically when the emitter is active. The
sound will be stopped automatically when the emitter
has finished, has been stopped or removed:
Emitter_SetSound MyEmitter, "soundfile.mp3", 1
Notice the last parameter. If set to 0, the sound will
be played once when the emitter has been started. If
set to 1, the sound loops as long as the emitter is
active.
Reminder: Blitz3D requires a Listener object in order to use 3D sounds. So before using sounds with Particle Candy, you must create a Listener first. Particle Candy does not create a Listener object and won't alter any existing ones, so you have to do this before:
CreateListener(CameraHandle%)
|
|