Interface IAudioClient
Assembly: Discord.Net.Core.dll
Syntax
public interface IAudioClient : IDisposable
Properties
|
Improve this Doc
View Source
ConnectionState
Gets the current connection state of this client.
Declaration
ConnectionState ConnectionState { get; }
Property Value
|
Improve this Doc
View Source
Latency
Gets the estimated round-trip latency, in milliseconds, to the voice WebSocket server.
Declaration
Property Value
|
Improve this Doc
View Source
UdpLatency
Gets the estimated round-trip latency, in milliseconds, to the voice UDP server.
Declaration
Property Value
Methods
|
Improve this Doc
View Source
CreateDirectOpusStream()
Creates a new outgoing stream accepting Opus-encoded data. This is a direct stream with no internal timer.
Declaration
AudioOutStream CreateDirectOpusStream()
Returns
|
Improve this Doc
View Source
CreateDirectPCMStream(AudioApplication, Nullable<Int32>, Int32)
Creates a new direct outgoing stream accepting PCM (raw) data. This is a direct stream with no internal timer.
Declaration
AudioOutStream CreateDirectPCMStream(AudioApplication application, int? bitrate = null, int packetLoss = 30)
Parameters
Returns
|
Improve this Doc
View Source
CreateOpusStream(Int32)
Creates a new outgoing stream accepting Opus-encoded data.
Declaration
AudioOutStream CreateOpusStream(int bufferMillis = 1000)
Parameters
Type |
Name |
Description |
Int32 |
bufferMillis |
|
Returns
|
Improve this Doc
View Source
CreatePCMStream(AudioApplication, Nullable<Int32>, Int32, Int32)
Creates a new outgoing stream accepting PCM (raw) data.
Declaration
AudioOutStream CreatePCMStream(AudioApplication application, int? bitrate = null, int bufferMillis = 1000, int packetLoss = 30)
Parameters
Returns
|
Improve this Doc
View Source
GetStreams()
Gets the current audio streams.
Declaration
IReadOnlyDictionary<ulong, AudioInStream> GetStreams()
Returns
|
Improve this Doc
View Source
SetSpeakingAsync(Boolean)
Declaration
Task SetSpeakingAsync(bool value)
Parameters
Type |
Name |
Description |
Boolean |
value |
|
Returns
|
Improve this Doc
View Source
StopAsync()
Declaration
Returns
Events
|
Improve this Doc
View Source
ClientDisconnected
Declaration
event Func<ulong, Task> ClientDisconnected
Event Type
Type |
Description |
Func<UInt64, Task> |
|
|
Improve this Doc
View Source
Connected
Declaration
event Func<Task> Connected
Event Type
Type |
Description |
Func<Task> |
|
|
Improve this Doc
View Source
Disconnected
Declaration
event Func<Exception, Task> Disconnected
Event Type
Type |
Description |
Func<Exception, Task> |
|
|
Improve this Doc
View Source
LatencyUpdated
Declaration
event Func<int, int, Task> LatencyUpdated
Event Type
|
Improve this Doc
View Source
SpeakingUpdated
Declaration
event Func<ulong, bool, Task> SpeakingUpdated
Event Type
|
Improve this Doc
View Source
StreamCreated
Declaration
event Func<ulong, AudioInStream, Task> StreamCreated
Event Type
|
Improve this Doc
View Source
StreamDestroyed
Declaration
event Func<ulong, Task> StreamDestroyed
Event Type
Type |
Description |
Func<UInt64, Task> |
|
|
Improve this Doc
View Source
UdpLatencyUpdated
Declaration
event Func<int, int, Task> UdpLatencyUpdated
Event Type