C# 클래스 Gablarski.Client.ClientSourceHandler

상속: IClientSourceHandler
파일 보기 프로젝트 열기: ermau/Gablarski 1 사용 예제들

공개 메소드들

메소드 설명
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