T("buffer")
AR SoundBuffer
Description
T("buffer") contains SoundBuffer and plays it.
* T("audio") is an instance of T("buffer") that can load an audio file and decode it.
Properties
buffer- SoundBuffer
pitch(T-Object)- Its default value is 1.
duration(ReadOnly Number)- The duration time of the contained sound buffer.
currentTime(T-Object or Number)- Sets or returns the current playback position in the receiver (in milliseconds)
isLooped(ReadOnly Boolean)- Returns
trueif the receiver should start over again when finished.
- Returns
isReversed(ReadOnly Boolean)- Returns
trueif the receiver should play in reverse.
- Returns
isEnded(ReadOnly Boolean)- Returns
trueif the playback of the receiver has ended.
- Returns
samplerate(ReadOnly Number)- Sample Rate of SoundBuffer
Methods
clone()- Returns a clone that share a buffer with an origin object.
slice(begin, end)- Returns a slice copied object between begin and end(milliseconds).
loop(value)- Loop.
reverse(value)- Reverse.
bang(value)- Reprocess from the beginning. When
falseis given, it does not start.
- Reprocess from the beginning. When
See Also
Source
https://github.com/mohayonao/timbre.js/blob/master/src/objects/buffer.js