C# Class Gablarski.Client.ClientSourceHandler

Inheritance: IClientSourceHandler
Afficher le fichier Open project: ermau/Gablarski Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

BeginSending() public méthode

public BeginSending ( AudioSource source ) : void
source AudioSource
Résultat void

ClientSourceHandler() protected méthode

protected ClientSourceHandler ( IGablarskiClientContext context, IClientSourceManager manager ) : System
context IGablarskiClientContext
manager IClientSourceManager
Résultat System

CreateFake() public méthode

public CreateFake ( string name, AudioFormat format, short frameSize ) : AudioSource
name string
format AudioFormat
frameSize short
Résultat AudioSource

EndSending() public méthode

public EndSending ( AudioSource source ) : void
source AudioSource
Résultat void

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetIsIgnored() public méthode

public GetIsIgnored ( AudioSource source ) : bool
source AudioSource
Résultat bool

OnAudioSourceMuted() protected méthode

protected OnAudioSourceMuted ( AudioSourceMutedEventArgs e ) : void
e AudioSourceMutedEventArgs
Résultat void

OnAudioSourceStarted() protected méthode

protected OnAudioSourceStarted ( AudioSourceEventArgs e ) : void
e Gablarski.Audio.AudioSourceEventArgs
Résultat void

OnAudioSourceStopped() protected méthode

protected OnAudioSourceStopped ( AudioSourceEventArgs e ) : void
e Gablarski.Audio.AudioSourceEventArgs
Résultat void

OnReceivedAudio() protected méthode

protected OnReceivedAudio ( ReceivedAudioEventArgs e ) : void
e Gablarski.Audio.ReceivedAudioEventArgs
Résultat void

OnReceivedSource() protected méthode

protected OnReceivedSource ( ReceivedAudioSourceEventArgs e ) : void
e ReceivedAudioSourceEventArgs
Résultat void

OnReceivedSourceList() protected méthode

protected OnReceivedSourceList ( ReceivedListEventArgs e ) : void
e ReceivedListEventArgs
Résultat void

OnSourcesRemoved() protected méthode

protected OnSourcesRemoved ( ReceivedListEventArgs e ) : void
e ReceivedListEventArgs
Résultat void

Receive() public méthode

public Receive ( AudioSource source, byte audio ) : void
source AudioSource
audio byte
Résultat void

Request() public méthode

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.
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

SendAudioDataAsync() public méthode

public SendAudioDataAsync ( AudioSource source, TargetType targetType, int targetIds, byte data ) : Task
source AudioSource
targetType TargetType
targetIds int
data byte
Résultat Task

ToggleIgnore() public méthode

public ToggleIgnore ( AudioSource source ) : bool
source AudioSource
Résultat bool

ToggleMute() public méthode

public ToggleMute ( AudioSource source ) : void
source AudioSource
Résultat void

this() public méthode

public this ( int id ) : AudioSource
id int
Résultat AudioSource

this() public méthode

public this ( IUserInfo user ) : IEnumerable
user IUserInfo
Résultat IEnumerable