Search
Preparing search index...
The search index is not available
play-audio
Options
All
Public
Public/Protected
All
Inherited
Menu
play-audio
<internal>
OpusDuplexStream
Class OpusDuplexStream
Hierarchy
Duplex
OpusDuplexStream
OpusDecoder
OpusEncoder
Index
Constructors
constructor
Properties
encoder
pcm_
length
Methods
_destroy
_final
_read
_write
applyCTL
bitrate
cleanup
decode
encode
setFEC
setPLP
Constructors
constructor
new
Opus
Duplex
Stream
(
options
:
OpusTransformOptions
)
:
OpusDuplexStream
Parameters
options:
OpusTransformOptions
Returns
OpusDuplexStream
Properties
Protected
encoder
encoder
:
<internal>
.
OpusEncoder
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
Abstract
_write
_write
(
chunk
:
Buffer
, enc
:
BufferEncoding
, next
:
(
error
?:
null
|
Error
)
=>
void
)
:
void
Parameters
chunk:
Buffer
enc:
BufferEncoding
next:
(
error
?:
null
|
Error
)
=>
void
(
error
?:
null
|
Error
)
:
void
Parameters
Optional
error:
null
|
Error
Returns
void
Returns
void
Abstract
applyCTL
applyCTL
(
ctl
:
number
, value
:
number
)
:
void
Parameters
ctl:
number
value:
number
Returns
void
bitrate
bitrate
(
bitrate
:
number
)
:
void
Parameters
bitrate:
number
Returns
void
Private
cleanup
cleanup
(
)
:
void
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
Duplex
Stream
constructor
encoder
pcm_
length
_destroy
_final
_read
_write
applyCTL
bitrate
cleanup
decode
encode
setFEC
setPLP
Generated using
TypeDoc