Player (prevent this by holding a reference) stops
all its sounds.
Constructor
Returns
Player
Properties
boolean
required
Whether the player is currently paused. Players can be paused
and resumed using
pause() and play().number
required
Playback speed of the sound.Increasing the speed will increase the pitch by the same factor.
For example, speed
0.5 halves the frequency (lowering pitch)
and speed 2 doubles it (raising pitch). Changes in speed
affect the total duration inversely.number
required
Volume of the sound.The value
1.0 is the “normal” volume (unfiltered input). Any
value other than 1.0 will multiply each sample by this value.Methods
appendFile()
Parameters
string
required
appendSamples()
Parameters
SamplesBuffer
required
clear()
empty()
true if this player has no more sounds to play.
Returns
boolean
getPos()
getPos() returns 5000 then the position in the recording
is 10 seconds from its start.
Returns
number
len()
Returns
number
pause()
play().
play()
skipOne()
sleepUntilEnd()
stop()
trySeek()
trySeek(60000) will seek to 42 seconds.
Parameters
number
required

