Contents

stop()

Stops playback of the audio resource and discards the location in the audio stream.

Declaration

@MainActor @preconcurrency func stop()

Discussion

The next time you call play(), playback starts at the beginning of the stream.

See Also

Starting and stopping audio playback