Adding sound
Sound class methods
- Methods on Sound select the sound data, turn on
the sound, set its volume, and loop sound playback
- By default, sounds are disabled, have a gain of 1.0,
and are not looped
| Method |
| void setSoundData( MediaContainer sound ) |
| void setEnable( boolean onOff ) |
| void setInitialGain( float amplitude ) |
| void setLoop( int count ) |
- Special loop count values:
- A 0 count loops 0 times (play once through)
- A -1 count loops forever