RSDAudioSoundPlayer
open class RSDAudioSoundPlayer : NSObject, RSDSoundPlayer
RSDAudioSoundPlayer is a concrete implementation of the RSDSoundPlayer protocol that can be used
to play system sounds using AudioServicesCreateSystemSoundID().
-
A singleton instance of the audio sound player.
Declaration
Swift
public static var shared: RSDSoundPlayer -
Play the given sound.
Declaration
Swift
open func playSound(_ sound: RSDSound)Parameters
soundThe system sound to play.
View on GitHub
RSDAudioSoundPlayer Class Reference