Three.V8

3D rendering engine using JavaScript as user script.

View on GitHub

<–Home

class OpusPlayer

Play back a raw opus stream.

class OpusPlayer

Name Description
Constructors  
OpusPlayer() Creates an opus-player.
Methods  
dispose() Dispose the unmanaged resource.
addPacket() Add an opus packet to the play queue.

Constructors

OpusRecorder()

OpusPlayer(id_device: Number)

Creates an opus-player.

Parameters

id_device : index of the audio output device

Methods

dispose()

.dispose(): undefined

Dispose the unmanaged resource.

addPacket()

.addPacket(data: ArrayBuffer): undefined

Add an opus packet to the play queue.