C# Класс Gablarski.Client.ClientSourceHandler

Наследование: IClientSourceHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BeginSending ( AudioSource source ) : void
CreateFake ( string name, AudioFormat format, short frameSize ) : AudioSource
EndSending ( AudioSource source ) : void
GetEnumerator ( ) : IEnumerator
GetIsIgnored ( AudioSource source ) : bool
Receive ( AudioSource source, byte audio ) : void
Request ( string name, AudioFormat format, short frameSize, int targetBitrate ) : void

Requests a source.

The server may not agree with the bitrate you request, do not set up audio based on this target, but on the bitrate of the source you actually receive.

Reset ( ) : void
SendAudioDataAsync ( AudioSource source, TargetType targetType, int targetIds, byte data ) : Task
ToggleIgnore ( AudioSource source ) : bool
ToggleMute ( AudioSource source ) : void
this ( int id ) : AudioSource
this ( IUserInfo user ) : IEnumerable

Защищенные методы

Метод Описание
ClientSourceHandler ( IGablarskiClientContext context, IClientSourceManager manager ) : System
OnAudioSourceMuted ( AudioSourceMutedEventArgs e ) : void
OnAudioSourceStarted ( AudioSourceEventArgs e ) : void
OnAudioSourceStopped ( AudioSourceEventArgs e ) : void
OnReceivedAudio ( ReceivedAudioEventArgs e ) : void
OnReceivedSource ( ReceivedAudioSourceEventArgs e ) : void
OnReceivedSourceList ( ReceivedListEventArgs e ) : void
OnSourcesRemoved ( ReceivedListEventArgs e ) : void

Приватные методы

Метод Описание
IEnumerable ( ) : IEnumerator
OnAudioSourceStateChangedMessage ( MessageEventArgs e ) : void
OnMutedMessage ( int sourceId, bool unmuted ) : void
OnServerAudioDataMessage ( MessageEventArgs e ) : void
OnSourceListReceivedMessage ( MessageEventArgs e ) : void
OnSourceMutedMessage ( MessageEventArgs e ) : void
OnSourceResultMessage ( MessageEventArgs e ) : void
OnSourcesRemovedMessage ( MessageEventArgs e ) : void

Описание методов

BeginSending() публичный Метод

public BeginSending ( AudioSource source ) : void
source AudioSource
Результат void

ClientSourceHandler() защищенный Метод

protected ClientSourceHandler ( IGablarskiClientContext context, IClientSourceManager manager ) : System
context IGablarskiClientContext
manager IClientSourceManager
Результат System

CreateFake() публичный Метод

public CreateFake ( string name, AudioFormat format, short frameSize ) : AudioSource
name string
format AudioFormat
frameSize short
Результат AudioSource

EndSending() публичный Метод

public EndSending ( AudioSource source ) : void
source AudioSource
Результат void

GetEnumerator() публичный Метод

public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetIsIgnored() публичный Метод

public GetIsIgnored ( AudioSource source ) : bool
source AudioSource
Результат bool

OnAudioSourceMuted() защищенный Метод

protected OnAudioSourceMuted ( AudioSourceMutedEventArgs e ) : void
e AudioSourceMutedEventArgs
Результат void

OnAudioSourceStarted() защищенный Метод

protected OnAudioSourceStarted ( AudioSourceEventArgs e ) : void
e Gablarski.Audio.AudioSourceEventArgs
Результат void

OnAudioSourceStopped() защищенный Метод

protected OnAudioSourceStopped ( AudioSourceEventArgs e ) : void
e Gablarski.Audio.AudioSourceEventArgs
Результат void

OnReceivedAudio() защищенный Метод

protected OnReceivedAudio ( ReceivedAudioEventArgs e ) : void
e Gablarski.Audio.ReceivedAudioEventArgs
Результат void

OnReceivedSource() защищенный Метод

protected OnReceivedSource ( ReceivedAudioSourceEventArgs e ) : void
e ReceivedAudioSourceEventArgs
Результат void

OnReceivedSourceList() защищенный Метод

protected OnReceivedSourceList ( ReceivedListEventArgs e ) : void
e ReceivedListEventArgs
Результат void

OnSourcesRemoved() защищенный Метод

protected OnSourcesRemoved ( ReceivedListEventArgs e ) : void
e ReceivedListEventArgs
Результат void

Receive() публичный Метод

public Receive ( AudioSource source, byte audio ) : void
source AudioSource
audio byte
Результат void

Request() публичный Метод

Requests a source.
The server may not agree with the bitrate you request, do not set up audio based on this target, but on the bitrate of the source you actually receive.
public Request ( string name, AudioFormat format, short frameSize, int targetBitrate ) : void
name string The user-local name of the source, used to identify the source later.
format AudioFormat
frameSize short
targetBitrate int The target bitrate to request.
Результат void

Reset() публичный Метод

public Reset ( ) : void
Результат void

SendAudioDataAsync() публичный Метод

public SendAudioDataAsync ( AudioSource source, TargetType targetType, int targetIds, byte data ) : Task
source AudioSource
targetType TargetType
targetIds int
data byte
Результат Task

ToggleIgnore() публичный Метод

public ToggleIgnore ( AudioSource source ) : bool
source AudioSource
Результат bool

ToggleMute() публичный Метод

public ToggleMute ( AudioSource source ) : void
source AudioSource
Результат void

this() публичный Метод

public this ( int id ) : AudioSource
id int
Результат AudioSource

this() публичный Метод

public this ( IUserInfo user ) : IEnumerable
user IUserInfo
Результат IEnumerable