WHAT IS
3D RAD?
CLICK HERE
TO FIND OUT!


SoundEffect


A customizable stereo/mono sound object.

You can use it to add your own audio effects to your projects, like for example a background music, interface sounds (the clicks and pops of changing options in a menu) and those in-game sounds that don't have a specific virtual space source location.



Sound Frequency. The frequency of a sound (Hz) is basically the speed at which it is played.

You will have to adjust this value to play each of your own samples at a proper frequency. Note that the maximum frequency playable depends on the installed sound card specifications. Frequencies above 100000 (100 kHz), may not be supported on some systems.

Sound Volume. This value must be between 0.0f (disable sound) and 1.0f (maximum volume).

Looping. If this option is checked, the sound effect is played again and again, indefinitely.

Playing at start. Whether to start playing the sound when the project is run. If this option is unchecked, you will need to start this object in order to hear the sound, for example by using the EventOnInput object.

For information about the remaining controls, please click here.


USING YOUR OWN SOUND EFFECTS

Save your sound files to the

C:\3D Rad\3DRad_res\objects\SoundEffect\Data\

folder.

To assign a sound file to the SoundEffect object, open the property dialog for the object, click the Change Sound File button and double click the desired file.

Supported sound file formats are: .wav, .ogg.

The sample format can be either mono or stereo.


INTERNAL PARAMETERS


The following internal parameters can be accessed by using event objects like EventOnValue or Script:

  • Sound frequency
  • Sound volume, between 0 and 1