Constructor
new ScheduledBufferPlayer(audioContext, audioArrayBuffer, time, gainValue)
Create a scheduled buffer player.
Parameters:
| Name | Type | Description |
|---|---|---|
audioContext |
Object | An AudioContext. |
audioArrayBuffer |
Object | An ArrayBuffer containing audio data. |
time |
Object | The scheduled time in seconds to start playing. |
gainValue |
Object | The value for the gain. |
Methods
play(offsetTime)
Set scheduled buffer to play.
Parameters:
| Name | Type | Description |
|---|---|---|
offsetTime |
number | The offset time. |
stop()
Stop scheduled buffer from playing.