Skip to content

Documentation / @debuffjp/audio / Stream

Interface: Stream ​

Defined in: index.ts:31

A streamed track. stop() is final: it unloads the track, and pause()/resume() do nothing after it.

Extends ​

Properties ​

element ​

readonly element: HTMLAudioElement

Defined in: index.ts:32

Methods ​

pause() ​

pause(): void

Defined in: index.ts:33

Returns ​

void


resume() ​

resume(): void

Defined in: index.ts:35

Carry on after pause(). Does nothing after stop() (before 0.31.1 it restarted a stopping track).

Returns ​

void


stop() ​

stop(fadeSeconds?): void

Defined in: index.ts:19

Parameters ​

fadeSeconds? ​

number

Returns ​

void

Inherited from ​

Voice.stop


volume() ​

volume(value, fadeSeconds?): void

Defined in: index.ts:36

Parameters ​

value ​

number

fadeSeconds? ​

number

Returns ​

void