AudioClip
Namespace: MonineEngine.Audio
An audio file as an instance that can be dynamically loaded and handled from AudioService.
public class AudioClip
Inheritance Object → AudioClip
Attributes NullableContextAttribute, NullableAttribute
Constructors
AudioClip(SoundEffect)
Constructs an AudioClip from the given SoundEffect
public AudioClip(SoundEffect sound)
Parameters
sound SoundEffect
The sound to use.
Methods
Load(ContentManager, String)
public static AudioClip Load(ContentManager content, string path)
Parameters
content ContentManager
path String
Returns
CreateInstance(Single, Single, Single, Boolean)
public AudioInstance CreateInstance(float volume, float pitch, float pan, bool loop)
Parameters
volume Single
pitch Single
pan Single
loop Boolean