We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8386a5 commit cea0856Copy full SHA for cea0856
1 file changed
Sources/BasicAudioPlayer/BAPlayer/BAPlayer.swift
@@ -126,9 +126,9 @@ public class BAPlayer {
126
127
/// Stops the playback and removes any scheduled events.
128
///
129
- /// This method does nothing when the player is playing or paused.
+ /// This method does nothing when no audio file is loaded.
130
public func stop() {
131
- guard status == .playing || status == .paused else {
+ guard status != .noSource else {
132
log.info("Couldn't stop the player: the player is already stopped.")
133
return
134
}
0 commit comments