Create a new KSS player instance.
playback sample rate.
Calculate specified length of wave samples.
generated samples.
The number of samples to render.
Calculate specified length without rendering wave.
number of samples to calculate.
pointer to the sample buffer.
number of samples to render.
Starts the fade-out.
fade-out duration in millis.
Get progress of the fading-out.
0: Not started, 1: In progress, 3: Completed.
Get the number of loops of the current playing music.
current loop counts.
MGSDRV's MIB.JUMPCT
value of MIB.JUMPCT
Check the player is stopped or not.
0: not stopped, 1: stopped.
Release the object. Without calling this method will cause memory-leak.
Resets the player.
The song number to play. If null, song index stored in KSS object is used.
0:AUTO, 1:3.58MHz 2:5.38MHz 3:7.16MHz 4:14.32MHz 5:28.64MHz
Set the kss object for playing.
kss instance.
Specify the playback quality of the devices.
Install callback for I/O write access on the VM.
Install callback for memory write access on the VM.
Set RC low-pass filter params.
Registor (OM)
Capacitor (nF)
Set the limit of the slient length. The player automatically stops if it detects silent longer than this limit.
maximum silent span in millis.
Write data to VM's I/O port.
address
data
Write data to VM's memory.
Static
Delegate of the free function on the emscripten heap.
pointer to the allocated buffer.
Delegate of the malloc function on the emscripten heap.
memory size to request.
Initialize library. Must be called with await before using KSS and KSSPlay classes.
a Promise object.
Make Int16Array from the pointer of the allocated memory on the emscripten heap.
Int16Array that contains allocated memory.
buffer size
Generated using TypeDoc
Create a new KSS player instance.