This class is responsible for managing a shared audio buffer for receiving microphone data. It is used by voice services to grab audio segments from the AudioBuffer's internal ring buffer.
Events triggered when AudioBuffer processes and receives audio data.
float MicMinAudioLevel[Get]
The minimum unsigned frequency handled by the microphone
float MicMaxAudioLevel[Get]
The minimum unsigned frequency handled by the microphone
bool IsInputAvailable[Get]
Returns true if an input audio source (for example Mic) is available
Member Functions
void OnApplicationQuit ( )
bool IsRecording
( Component component )
Returns true if a component has registered to receive audio data and if the mic is actively capturing data that will be shared
Parameters
component
The source of the StartRecording
Returns
True if this component has called StartRecording
void StartRecording
( Component component )
Adds a component to the active list of recorders. If the AudioBuffer isn't already storing mic data in the ring buffer, it will start to store data in the ring buffer.
Parameters
component
A component to use as a key that will keep the audio buffer actively recording
void StopRecording
( Component component )
Releases the recording state on the AudioBuffer for the given component. If no components are holding a lock on the AudioBuffer it will stop populating the ring buffer.
A marker representing a position in the ring buffer that can be read as long as the the ring buffer hasn't wrapped and replaced the start of this marker yet.