AudioPlayerManager
class AudioPlayerManager
Audio Player Manager, used to control the sound playing process
-
Initializes the Audio Playe Manager
Declaration
Swift
public init()
-
Loads sound with Audio file
Declaration
Swift
func load(audioFile: AudioFile)Parameters
audioFileAudio file
-
Loads sound with URL for sound’ identifier
Declaration
Swift
func load(sound url: URL, for identifier: SoundIdentifier)Parameters
urlFile’s URL
identifierSound’s identifier
-
Plays sound with an identifier
Declaration
Swift
func play(_ sound: SoundIdentifier, allowOverlap: Bool = true)Parameters
soundSound’s identifier
allowOverlapAllow overlap sound each other
AudioPlayerManager Class Reference