C# Класс GAudio.MicrophoneModule

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

Открытые свойства

Свойство Тип Описание
initInStart bool
onMicFailed OnMicFailed

Защищенные свойства (Protected)

Свойство Тип Описание
_initialized bool
_onReadyToRecord ReadyToRecordHandler

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

Метод Описание
InitDevices ( ) : void
OnDestroy ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
ResetDevices ( ) : void

Call to refresh the list of available microphones ( Microphones static property ). This stops the current microphone.

StartMicrophone ( GATMicInfo micInfo, ReadyToRecordHandler callback = null ) : void

Prepares and starts a stream with mic input. This method starts a coroutine: when mic input goes live, callback will be fired.

StartMicrophone ( ReadyToRecordHandler callback = null ) : void

Prepares and starts a stream with CurrentMic as input. This method starts a coroutine: when mic input goes live, callback will be fired.

Update ( ) : void

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

Метод Описание
Awake ( ) : void
OnAudioFilterRead ( float data, int numChannels ) : void

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

Метод Описание
InitMicrophonedRoutine ( ) : IEnumerator
Start ( ) : IEnumerator

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

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

protected Awake ( ) : void
Результат void

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

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

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

protected OnAudioFilterRead ( float data, int numChannels ) : void
data float
numChannels int
Результат void

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

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

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

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

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

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

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

Call to refresh the list of available microphones ( Microphones static property ). This stops the current microphone.
public ResetDevices ( ) : void
Результат void

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

Prepares and starts a stream with mic input. This method starts a coroutine: when mic input goes live, callback will be fired.
public StartMicrophone ( GATMicInfo micInfo, ReadyToRecordHandler callback = null ) : void
micInfo GATMicInfo
callback ReadyToRecordHandler
Результат void

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

Prepares and starts a stream with CurrentMic as input. This method starts a coroutine: when mic input goes live, callback will be fired.
public StartMicrophone ( ReadyToRecordHandler callback = null ) : void
callback ReadyToRecordHandler
Результат void

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

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

Описание свойств

_initialized защищенное свойство

protected bool _initialized
Результат bool

_onReadyToRecord защищенное свойство

protected ReadyToRecordHandler _onReadyToRecord
Результат ReadyToRecordHandler

initInStart публичное свойство

Should the default microphone be primed in Start()?
public bool initInStart
Результат bool

onMicFailed публичное свойство

Subscribe to this delegate to be notified of interruptions, for example when the user plugs or unplugs headphones. You can immediately call StartMicrophone() to resume recording.
public OnMicFailed onMicFailed
Результат OnMicFailed