Class AudioClip
- Namespace
- Alis.Core.Ecs.Component.Audio
- Assembly
- Alis.dll
The audio clip class
public class AudioClip
Inheritance
Inherited Members
Constructors
AudioClip()
Initializes a new instance of the Alis.Core.Ecs.Component.Audio.AudioClip class
public AudioClip()
AudioClip(string)
Initializes a new instance of the Alis.Core.Ecs.Component.Audio.AudioClip class
public AudioClip(string nameFile)
Parameters
nameFile
string-
The name file
AudioClip(string, bool, bool, bool, float)
Initializes a new instance of the Alis.Core.Ecs.Component.Audio.AudioClip class
public AudioClip(string nameFile, bool isPlaying, bool isMute, bool isLooping, float volume)
Parameters
nameFile
string-
The name file
isPlaying
bool-
The is playing
isMute
bool-
The is mute
isLooping
bool-
The is looping
volume
float-
The volume
Fields
player
The player
private readonly Player player
Field Value
Properties
FullPathAudioFile
Gets or sets the value of the full path audio file
private string FullPathAudioFile { get; set; }
Property Value
IsLooping
Gets or sets the value of the is looping
[JsonPropertyName("_IsLooping_")]
public bool IsLooping { get; set; }
Property Value
IsMute
Gets or sets the value of the is mute
[JsonPropertyName("_IsMute_")]
public bool IsMute { get; set; }
Property Value
IsPlaying
Gets or sets the value of the is playing
[JsonPropertyName("_IsPlaying_")]
public bool IsPlaying { get; set; }
Property Value
NameFile
Gets or sets the value of the name file
[JsonPropertyName("_NameFile_")]
public string NameFile { get; set; }
Property Value
Volume
Gets or sets the value of the volume
[JsonPropertyName("_Volume_")]
public float Volume { get; set; }
Property Value
Methods
Builder()
Builders
public static AudioClipBuilder Builder()
Returns
- AudioClipBuilder
-
The audio clip builder
Play()
Plays this instance
internal void Play()
Resume()
Resumes this instance
internal void Resume()
Stop()
Stops this instance
internal void Stop()