API reference
API reference
Select your platform
No SDKs available
No versions available

AudioClipAudioSource Class

Extends MonoBehaviour, IAudioInputSource

Properties

IVLogger _log[Get]
bool IsMuted[Get]

Events

Action OnMicMuted
Action OnMicUnmuted
Action OnStartRecording
Action OnStartRecordingFailed
Action< int, float[], float > OnSampleReady
Action OnStopRecording

Fields

bool IsRecording[Get]
The audio encoding of the clips being transmitted
bool IsInputAvailable[Get]

Protected Functions

virtual void SetMuted
( bool muted )

Member Functions

Starts recording audio with the specified sample length.
Parameters
sampleLen
The length of the audio sample to record.
Stops recording audio.
void CheckForInput ( )
bool SetActiveClip
( string clipName )
void AddClip
( AudioClip clip )

Static Member Functions

Resamples the audio clip to match the current AudioEncoding since AudioBuffer resamples based on the AudioEncoding. This allows for transmission of clips with different sample rates and channel counts.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon