The souind library provides methods to create create and play sound effects and background music.
| sound | The souind library provides methods to create create and play sound effects and background music. |
| Functions | |
| sound. | Creates a simple sound effect using a Sprite Kit action. |
| sound. | Creates an AVAuidoPlayer object that can be used to play sounds or background music. |
| sound.play | Play a previously created sound. |
function sound.play( sound )
Play a previously created sound.
| sound | A sound object created with the sound.newSound function. |
nothing
Creates a simple sound effect using a Sprite Kit action.
function sound.newSound( filename, wait )
Creates an AVAuidoPlayer object that can be used to play sounds or background music.
function sound.newAudioPlayer( filename )
Play a previously created sound.
function sound.play( sound )