Playable

An interface representing a type which can be played over a VoiceClient.

Members

Functions

getFrameDuration
short getFrameDuration()

Duration of the frame in milliseconds

getFrameSize
short getFrameSize()

Size of the frame in bytes

hasMoreFrames
bool hasMoreFrames()

Returns true while there are more frames to be played

nextFrame
ubyte[] nextFrame()

Returns the next frame to be played

start
void start()

Called when the Playable begins to be played

Meta