AudioEvent¶
Import: import system.audio;
Read the audio guide for usage, limits, and current platform restrictions.
AudioEvent¶
Ordered player notifications. Timestamps are monotonic nanoseconds.
LoadStart¶
Loading began.
LoadedMetadata¶
Source metadata became available.
CanPlay¶
Samples are available for playback.
Play¶
Playback was requested and pause state cleared.
Playing¶
Output started or recovered from buffering.
Pause¶
Playback paused without changing position.
Seeking¶
A seek was accepted; position is the requested time in seconds.
Seeked¶
A seek completed; position is the actual time in seconds.
TimeUpdate¶
Playback position changed; emitted at most four times per second.
Waiting¶
Playback is waiting for source data.
Ended¶
The source reached its natural end without looping.
VolumeChange¶
Volume or mute changed.
DurationChange¶
The known duration changed.
Emptied¶
Previous source state was reset.
Abort¶
Pending loading was cancelled.
Error¶
An operation failed; terminal marks a failure that stopped playback.
SinkChange¶
The selected output changed.
DeviceLost¶
Output disappeared and playback paused.
Closed¶
Playback resources were released.
EventsLost¶
Queue overflow discarded count older events.