C# Class Discord.Net.WebSockets.VoiceSocket

Inheritance: Discord.Net.WebSockets.WebSocket
Afficher le fichier Open project: RogueException/Discord.Net Class Usage Examples

Private Properties

Свойство Type Description
OnFrameReceived void
OnUserIsSpeaking void
ReceiveVoiceAsync Task
Reconnect Task
SendVoiceAsync Task
VoiceSocket Discord.API.Client
WatcherAsync Task

Méthodes publiques

Méthode Description
ClearPCMFrames ( ) : void
Connect ( string host, string token, ulong userId, string sessionId, CancellationToken parentCancelToken ) : Task
Disconnect ( ) : Task
SendHeartbeat ( ) : void
SendIdentify ( ulong id, string sessionId ) : void
SendPCMFrames ( byte data, int offset, int count ) : void
SendSelectProtocol ( string externalAddress, int externalPort ) : void
SendSetSpeaking ( bool value ) : void
WaitForQueue ( ) : void

Méthodes protégées

Méthode Description
Cleanup ( ) : Task
ProcessMessage ( string json ) : Task
Run ( ) : Task

Private Methods

Méthode Description
OnFrameReceived ( ulong userId, ulong channelId, byte buffer, int offset, int count ) : void
OnUserIsSpeaking ( ulong userId, bool isSpeaking ) : void
ReceiveVoiceAsync ( CancellationToken cancelToken ) : Task
Reconnect ( ) : Task
SendVoiceAsync ( CancellationToken cancelToken ) : Task
VoiceSocket ( DiscordConfig config, Discord.Audio.AudioServiceConfig audioConfig, JsonSerializer serializer, Logger logger ) : Discord.API.Client
WatcherAsync ( ) : Task

Method Details

Cleanup() protected méthode

protected Cleanup ( ) : Task
Résultat Task

ClearPCMFrames() public méthode

public ClearPCMFrames ( ) : void
Résultat void

Connect() public méthode

public Connect ( string host, string token, ulong userId, string sessionId, CancellationToken parentCancelToken ) : Task
host string
token string
userId ulong
sessionId string
parentCancelToken System.Threading.CancellationToken
Résultat Task

Disconnect() public méthode

public Disconnect ( ) : Task
Résultat Task

ProcessMessage() protected méthode

protected ProcessMessage ( string json ) : Task
json string
Résultat Task

Run() protected méthode

protected Run ( ) : Task
Résultat Task

SendHeartbeat() public méthode

public SendHeartbeat ( ) : void
Résultat void

SendIdentify() public méthode

public SendIdentify ( ulong id, string sessionId ) : void
id ulong
sessionId string
Résultat void

SendPCMFrames() public méthode

public SendPCMFrames ( byte data, int offset, int count ) : void
data byte
offset int
count int
Résultat void

SendSelectProtocol() public méthode

public SendSelectProtocol ( string externalAddress, int externalPort ) : void
externalAddress string
externalPort int
Résultat void

SendSetSpeaking() public méthode

public SendSetSpeaking ( bool value ) : void
value bool
Résultat void

WaitForQueue() public méthode

public WaitForQueue ( ) : void
Résultat void