C# Class GAudio.MicrophoneModule

Inheritance: SourceToStreamModule
Afficher le fichier Open project: gregzo/G-Audio

Méthodes publiques

Свойство Type Description
initInStart bool
onMicFailed OnMicFailed

Protected Properties

Свойство Type Description
_initialized bool
_onReadyToRecord ReadyToRecordHandler

Méthodes publiques

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

Méthodes protégées

Méthode Description
Awake ( ) : void
OnAudioFilterRead ( float data, int numChannels ) : void

Private Methods

Méthode Description
InitMicrophonedRoutine ( ) : IEnumerator
Start ( ) : IEnumerator

Method Details

Awake() protected méthode

protected Awake ( ) : void
Résultat void

InitDevices() public méthode

public InitDevices ( ) : void
Résultat void

OnAudioFilterRead() protected méthode

protected OnAudioFilterRead ( float data, int numChannels ) : void
data float
numChannels int
Résultat void

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnDisable() public méthode

public OnDisable ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

ResetDevices() public méthode

Call to refresh the list of available microphones ( Microphones static property ). This stops the current microphone.
public ResetDevices ( ) : void
Résultat void

StartMicrophone() public méthode

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

StartMicrophone() public méthode

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

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

_initialized protected_oe property

protected bool _initialized
Résultat bool

_onReadyToRecord protected_oe property

protected ReadyToRecordHandler _onReadyToRecord
Résultat ReadyToRecordHandler

initInStart public_oe property

Should the default microphone be primed in Start()?
public bool initInStart
Résultat bool

onMicFailed public_oe property

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
Résultat OnMicFailed