Class: Audio

lime.audio.Audio

new lime.audio.Audio(filePath)

Audio stream object
Parameters:
Name Type Description
filePath string Path to audio file.
Source:

Summary

Members
baseElement :audio
Internal audio element
<private> loaded_ :bBoolean
<private> playing_ :boolean
Methods
isLoaded() → {boolean}
Returns true if audio file has been loaded
isPlaying() → {boolean}
Returns true if audio file is playing
<private> loadHandler_()
Handle loading the audio file. Event handlers seem to fail on lot of browsers.
play(opt_loop)
Start playing the audio
stop()
Stop playing the audio

Members

baseElement :audio

Internal audio element
Source:

<private> loaded_ :bBoolean

Source:

<private> playing_ :boolean

Source:

Methods

isLoaded() → {boolean}

Returns true if audio file has been loaded
Source:
Returns:
Audio has been loaded.
Type
boolean

isPlaying() → {boolean}

Returns true if audio file is playing
Source:
Returns:
Audio is playing.
Type
boolean

<private> loadHandler_()

Handle loading the audio file. Event handlers seem to fail on lot of browsers.
Source:

play(opt_loop)

Start playing the audio
Parameters:
Name Type Argument Description
opt_loop number <optional>
Loop the sound.
Source:

stop()

Stop playing the audio
Source: