43 float Pan {
get;
set; }
61 void Play(
bool fromStart =
true);
77 void Seek(TimeSpan position);
Backend-provided playback handle used by AudioResource. Implements IDisposable to allow releasing any...
void Seek(TimeSpan position)
Seek to the specified position within the resource.
AudioPlaybackState State
Gets the current playback state.
float Volume
Gets or sets the playback volume. Expected range is implementation-defined (commonly 0....
bool IsLooping
Gets or sets whether playback should loop when reaching the end.
string? TemporaryFilePath
If the backend created a temporary file for playback (for example when streaming or converting),...
EventHandler? PlaybackCompleted
Raised when playback has reached the end (and is not looping) or otherwise completes.
TimeSpan Duration
Gets the total duration of the loaded audio resource.
float Pan
Gets or sets the stereo pan. Expected range is implementation-defined (commonly -1....
TimeSpan CurrentTime
Gets the current playback position.
void Resume()
Resume playback after a pause.
void Pause()
Pause playback. Calling Resume should continue from the paused position.
float PlaybackSpeed
Gets or sets the playback speed multiplier (1.0 = normal speed).
void Play(bool fromStart=true)
Start playback. If fromStart is true, playback will begin from the start of the resource; otherwise ...
void Stop()
Stop playback and reset the current position to the start.
AudioPlaybackState
Describes the current playback state of an audio resource without exposing backend-specific playback ...