AudioPlayable
protocol AudioPlayable
The protocol used to play audio files
-
Audio Player Manager
Declaration
Swift
var audioPlayerManager: AudioPlayerManager { get } -
The sound that used to play when edge anchor collide
Declaration
Swift
var edgeCollisionSound: AudioFile? { get set } -
The sound that used to play when center anchor collide
Declaration
Swift
var centerCollisionSound: AudioFile? { get set } -
prepareSoundFor(audioFile:Extension method) Prepares sound for audio file
Declaration
Swift
func prepareSoundFor(audioFile: AudioFile?)Parameters
audioFileAudio file
-
playSound(audioFile:Extension method) Plays sound for audio file
Declaration
Swift
func playSound(audioFile: AudioFile)Parameters
audioFileAudio file
-
playSoundIfNeeded(type:Extension method) Plays sound if needed for collision type
Declaration
Swift
func playSoundIfNeeded(type: CollisionType)Parameters
typeCollision type
AudioPlayable Protocol Reference