T("audio")
ARSTEREO AudioFile
Description
T("audio")
is an instance of T("buffer")
that can load an audio file and decode it.
Properties
isLoaded
(ReadOnly Boolean)- Returns
true
if the receiver have loaded an audio file.
- Returns
Methods
DEFERRED
load(src, [done], [fail])
- Loads an audio file and decodes it and returns a
promise
object as jQuery.
- Loads an audio file and decodes it and returns a
loadthis(src, [done], [fail])
- Same as
load()
, but returnsthis
.
- Same as
jQuery
Events
load
loadedmetadata
loadeddata
done
error
Note
- A correspondent codec is dependent on a browser (in node.js, only wav and MP3 correspond).
Source
https://github.com/mohayonao/timbre.js/blob/master/src/objects/audio.js