Search
Preparing search index...
The search index is not available
play-audio
Options
All
Public
Public/Protected
All
Inherited
Menu
play-audio
OpusDecoder
Class OpusDecoder
Hierarchy
OpusDuplexStream
OpusDecoder
Index
Constructors
constructor
Properties
encoder
opus
Head
opus
Tags
pcm_
length
Methods
_destroy
_final
_read
_write
applyCTL
bitrate
decode
encode
setFEC
setPLP
Constructors
constructor
new
Opus
Decoder
(
options
:
OpusTransformOptions
)
:
OpusDecoder
Parameters
options:
OpusTransformOptions
Returns
OpusDecoder
Properties
Protected
encoder
encoder
:
<internal>
.
OpusEncoder
Optional
opus
Head
opus
Head
?:
Buffer
Optional
opus
Tags
opus
Tags
?:
Buffer
Protected
pcm_
length
pcm_
length
:
number
Methods
_destroy
_destroy
(
error
:
null
|
Error
, callback
:
(
error
:
null
|
Error
)
=>
void
)
:
void
Parameters
error:
null
|
Error
callback:
(
error
:
null
|
Error
)
=>
void
(
error
:
null
|
Error
)
:
void
Parameters
error:
null
|
Error
Returns
void
Returns
void
_final
_final
(
callback
:
(
error
?:
null
|
Error
)
=>
void
)
:
void
Parameters
callback:
(
error
?:
null
|
Error
)
=>
void
(
error
?:
null
|
Error
)
:
void
Parameters
Optional
error:
null
|
Error
Returns
void
Returns
void
_read
_read
(
)
:
void
Returns
void
_write
_write
(
chunk
:
Buffer
, _
:
BufferEncoding
, done
:
(
error
?:
null
|
Error
)
=>
void
)
:
void
Parameters
chunk:
Buffer
_:
BufferEncoding
done:
(
error
?:
null
|
Error
)
=>
void
(
error
?:
null
|
Error
)
:
void
Parameters
Optional
error:
null
|
Error
Returns
void
Returns
void
applyCTL
applyCTL
(
ctl
:
number
, value
:
number
)
:
void
Parameters
ctl:
number
value:
number
Returns
void
bitrate
bitrate
(
bitrate
:
number
)
:
void
Parameters
bitrate:
number
Returns
void
Protected
decode
decode
(
buffer
:
Buffer
)
:
Buffer
Parameters
buffer:
Buffer
Returns
Buffer
Protected
encode
encode
(
buf
:
Buffer
)
:
Buffer
Parameters
buf:
Buffer
Returns
Buffer
setFEC
setFEC
(
enabled
:
boolean
)
:
void
Parameters
enabled:
boolean
Returns
void
setPLP
setPLP
(
percentage
:
number
)
:
void
Parameters
percentage:
number
Returns
void
Exports
<internal>
Opus
Decoder
constructor
encoder
opus
Head
opus
Tags
pcm_
length
_destroy
_final
_read
_write
applyCTL
bitrate
decode
encode
setFEC
setPLP
Generated using
TypeDoc