Skip to content

AudioEntity

class · namespace Hazel

Sound2D is just a basic helper class to easily spawn and control simple 2D sound objects.

Inherits Entity

public class AudioEntity : Entity

Constructors

AudioEntity()

internal protected AudioEntity()

AudioEntity(ulong)

internal protected AudioEntity(ulong entityID)

Properties

PitchMultiplier

public float PitchMultiplier { get; set; }

VolumeMultiplier

public float VolumeMultiplier { get; set; }

Methods

IsPlaying()

public bool IsPlaying()

Pause()

public bool Pause()

Play(float)

public bool Play(float startTime = 0.0f)

Resume()

public bool Resume()

Stop()

public bool Stop()

Source: Hazel/Audio/Audio.cs