PlasmoVoice
jvm
PlasmoVoice
/
su.plo.voice.api.audio.codec
/
AudioDecoder
Audio
Decoder
interface
AudioDecoder
Represents an audio decoder for decoding audio.
Members
Functions
close
Link copied to clipboard
abstract
fun
close
(
)
Closes the audio decoder, releasing any allocated resources.
decode
Link copied to clipboard
abstract
fun
decode
(
encoded
:
Array
<
Byte
>
)
:
Array
<
Short
>
Decodes the given encoded audio data into an array of audio samples.
is
Open
Link copied to clipboard
abstract
fun
isOpen
(
)
:
Boolean
Checks if the audio decoder is currently open and ready for decoding.
open
Link copied to clipboard
abstract
fun
open
(
)
Opens the audio decoder.
reset
Link copied to clipboard
abstract
fun
reset
(
)
Resets the audio decoder to its initial state.