mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
docs: include StreamType enum description in new docs (#9457)
This commit is contained in:
@@ -24,19 +24,27 @@ const FFMPEG_OPUS_ARGUMENTS = [
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The different types of stream that can exist within the pipeline.
|
* The different types of stream that can exist within the pipeline.
|
||||||
*
|
|
||||||
* @remarks
|
|
||||||
* - `Arbitrary` - the type of the stream at this point is unknown.
|
|
||||||
* - `Raw` - the stream at this point is s16le PCM.
|
|
||||||
* - `OggOpus` - the stream at this point is Opus audio encoded in an Ogg wrapper.
|
|
||||||
* - `WebmOpus` - the stream at this point is Opus audio encoded in a WebM wrapper.
|
|
||||||
* - `Opus` - the stream at this point is Opus audio, and the stream is in object-mode. This is ready to play.
|
|
||||||
*/
|
*/
|
||||||
export enum StreamType {
|
export enum StreamType {
|
||||||
|
/**
|
||||||
|
* The type of the stream at this point is unknown.
|
||||||
|
*/
|
||||||
Arbitrary = 'arbitrary',
|
Arbitrary = 'arbitrary',
|
||||||
|
/**
|
||||||
|
* The stream at this point is Opus audio encoded in an Ogg wrapper.
|
||||||
|
*/
|
||||||
OggOpus = 'ogg/opus',
|
OggOpus = 'ogg/opus',
|
||||||
|
/**
|
||||||
|
* The stream at this point is Opus audio, and the stream is in object-mode. This is ready to play.
|
||||||
|
*/
|
||||||
Opus = 'opus',
|
Opus = 'opus',
|
||||||
|
/**
|
||||||
|
* The stream at this point is s16le PCM.
|
||||||
|
*/
|
||||||
Raw = 'raw',
|
Raw = 'raw',
|
||||||
|
/**
|
||||||
|
* The stream at this point is Opus audio encoded in a WebM wrapper.
|
||||||
|
*/
|
||||||
WebmOpus = 'webm/opus',
|
WebmOpus = 'webm/opus',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user