PlasmoVoice
jvm
PlasmoVoice
/
su.plo.voice.api.audio.codec
/
AudioEncoder
Audio
Encoder
interface
AudioEncoder
Represents an audio encoder for encoding audio.
Members
Functions
close
Link copied to clipboard
abstract
fun
close
(
)
Closes the audio encoder, releasing any allocated resources.
encode
Link copied to clipboard
abstract
fun
encode
(
samples
:
Array
<
Short
>
)
:
Array
<
Byte
>
Encodes the given audio samples into a compressed format represented as an array of bytes.
is
Open
Link copied to clipboard
abstract
fun
isOpen
(
)
:
Boolean
Checks if the audio encoder is currently open and ready for encoding operations.
open
Link copied to clipboard
abstract
fun
open
(
)
Opens the audio encoder, preparing it for encoding operations.
reset
Link copied to clipboard
abstract
fun
reset
(
)
Resets the audio encoder to its initial state.