Represents an audio clip that can be played.
More...
|
| | AudioClip (Sound clip, byte volume=100) |
| | Initializes a new instance of the AudioClip class with the specified sound clip and volume.
|
| |
| | AudioClip (string clipPath, byte volume=100) |
| | Initializes a new instance of the AudioClip class with the sound clip loaded from the specified file path and volume.
|
| |
| void | PlayOnce () |
| | Plays the audio clip once.
|
| |
|
| Sound | clip |
| | The sound clip to be played.
|
| |
| byte | volume |
| | The volume of the audio clip.
|
| |
|
| | ~AudioClip () |
| | Finalizes an instance of the AudioClip class.
|
| |
Represents an audio clip that can be played.
◆ AudioClip() [1/2]
| WoopWoop.Audio.AudioClip.AudioClip |
( |
Sound | clip, |
|
|
byte | volume = 100 ) |
Initializes a new instance of the AudioClip class with the specified sound clip and volume.
- Parameters
-
| clip | The sound clip to be played. |
| volume | The volume of the audio clip (default is 100). |
◆ AudioClip() [2/2]
| WoopWoop.Audio.AudioClip.AudioClip |
( |
string | clipPath, |
|
|
byte | volume = 100 ) |
Initializes a new instance of the AudioClip class with the sound clip loaded from the specified file path and volume.
- Parameters
-
| clipPath | The path to the sound clip file. |
| volume | The volume of the audio clip (default is 100). |
◆ ~AudioClip()
| WoopWoop.Audio.AudioClip.~AudioClip |
( |
| ) |
|
|
private |
Finalizes an instance of the AudioClip class.
◆ PlayOnce()
| void WoopWoop.Audio.AudioClip.PlayOnce |
( |
| ) |
|
Plays the audio clip once.
◆ clip
| Sound WoopWoop.Audio.AudioClip.clip |
The sound clip to be played.
◆ volume
| byte WoopWoop.Audio.AudioClip.volume |
The volume of the audio clip.
The documentation for this class was generated from the following file: