Skip to content

ISoundLoop

namespace Griff.Runtime;
public interface ISoundLoop

A sound playing over and over, from Loop.

public abstract bool IsPlaying { get; }

True until Stop.

public abstract float Pan { get; set; }

-1 (left) to 1 (right).

public virtual float Pitch { get; set; }

1 as recorded, 2 an octave up, 0.5 an octave down: a machine that revs, an engine that speeds up.

public abstract float Volume { get; set; }

0 to 1, on top of the game’s sound volume.

public abstract void Stop()