SyncGroup

SyncGroup is a rudementary and naive form of audio synchronization for music channels. It's recommended to implement your own algorithm to handle this. Feel free to look at the source for some hints on how to do this.

Constructors

this
this(Music[] group)

Creates a new SyncGroup which keeps Music instances synchronized. The first track in the group is the one that will be the sync source by default.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

Pause
void Pause()

Pause all audio tracks in the sync group

Play
void Play()

Play all audio tracks in the sync group

Resync
void Resync()

Resyncronizes audio tracks

SetSyncSource
void SetSyncSource(Music mus)

Sets the synchronization source

Stop
void Stop()

Stop all audio tracks in the sync group

Update
void Update()

Call every frame to make sure that XRuns are handled.

Properties

Gain
float Gain [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
Pitch
float Pitch [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta