WoopWoop-Docs
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | List of all members
WoopWoop.Audio.AudioClip Class Reference

Represents an audio clip that can be played. More...

Public Member Functions

 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.
 

Public Attributes

Sound clip
 The sound clip to be played.
 
byte volume
 The volume of the audio clip.
 

Private Member Functions

 ~AudioClip ()
 Finalizes an instance of the AudioClip class.
 

Detailed Description

Represents an audio clip that can be played.

Constructor & Destructor Documentation

◆ 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
clipThe sound clip to be played.
volumeThe 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
clipPathThe path to the sound clip file.
volumeThe volume of the audio clip (default is 100).

◆ ~AudioClip()

WoopWoop.Audio.AudioClip.~AudioClip ( )
private

Finalizes an instance of the AudioClip class.

Member Function Documentation

◆ PlayOnce()

void WoopWoop.Audio.AudioClip.PlayOnce ( )

Plays the audio clip once.

Member Data Documentation

◆ 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: