Preparing search index...
The search index is not available
@formant/data-sdk
@formant/data-sdk
AudioPlayer
Class AudioPlayer
Index
Constructors
constructor
Properties
audio
Context
buffer
Size
chunks
device
has
Received
Data
is
Playing
last
Chunk
Offset
muted
start
Time
stream
Methods
change
Audio
Wire
Format
create
Chunk
destroy
pause
play
receive
schedule
Chunk
Constructors
constructor
new
Audio
Player
(
device
,
stream
)
:
AudioPlayer
Parameters
device
:
Device
stream
:
RealtimeDataStream
Returns
AudioPlayer
Properties
Private
audio
Context
audio
Context
:
AudioContext
Private
buffer
Size
buffer
Size
:
number
= 3
Private
chunks
chunks
:
AudioBufferSourceNode
[]
= []
Private
device
device
:
Device
Private
has
Received
Data
has
Received
Data
:
boolean
= false
Private
is
Playing
is
Playing
:
boolean
= false
Private
last
Chunk
Offset
last
Chunk
Offset
:
number
= 0
Private
muted
muted
:
boolean
= false
Private
start
Time
start
Time
:
number
= 0
Private
stream
stream
:
RealtimeDataStream
Methods
Private
change
Audio
Wire
Format
change
Audio
Wire
Format
(
newFormat
)
:
void
Parameters
newFormat
:
"wav"
|
"opus"
Returns
void
Private
create
Chunk
create
Chunk
(
buffer
)
:
undefined
|
AudioBufferSourceNode
Parameters
buffer
:
AudioBuffer
Returns
undefined
|
AudioBufferSourceNode
destroy
destroy
(
)
:
void
Returns
void
pause
pause
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
play
play
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
receive
receive
(
msg
)
:
Promise
<
void
>
Parameters
msg
:
IRtcStreamMessage
Returns
Promise
<
void
>
Private
schedule
Chunk
schedule
Chunk
(
buffer
)
:
void
Parameters
buffer
:
AudioBuffer
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
audio
Context
buffer
Size
chunks
device
has
Received
Data
is
Playing
last
Chunk
Offset
muted
start
Time
stream
change
Audio
Wire
Format
create
Chunk
destroy
pause
play
receive
schedule
Chunk
@formant/data-sdk
Loading...
Generated using
TypeDoc