AudioClipOutput

class NatML.Devices.Outputs.AudioClipOutput : AudioOutput

The AudioClipOutput creates an AudioClip from an AudioBuffer stream.

Creating the Output

/// <summary>
/// Create an audio clip output.
/// </summary>
AudioClipOutput ();

The output is trivially constructed.

Updating with New Buffers

/// <summary>
/// Update the output with a new audio buffer.
/// </summary>
/// <param name="audioBuffer">Audio buffer.</param>
void Update (AudioBuffer audioBuffer);

Refer to the Updating with New Buffers section of the AudioOutput class for more information.

Creating an Audio Clip

/// <summary>
/// Get the current clip containing all audio recorded up till this point.
/// </summary>
AudioClip ToClip ();

The output can create an AudioClip from all audio data that has been previously provided.

Note that this clip DOES NOT stream new audio that is provided to the output.

Disposing the Output

/// <summary>
/// Dispose the audio output and release resources.
/// </summary>
void Dispose ();

Refer to the Disposing the Output section of the AudioOutput class for more information.

Last updated