AudioOutput
abstract class NatML.Devices.Outputs.AudioOutput : IDisposable
The AudioOutput
is an abstract base class for defining media device outputs that consume AudioBuffer
instances.
Updating with New Buffers
The audio output is updated with the Update
method. The output will then consume the data within the AudioBuffer
, performing any necessary computations and transformations.
Disposing the Output
The Dispose
method performs a cleanup and releases any resources held by the output.
Always remember to dispose outputs to prevent resource leaks.
Implicit Delegate Conversion
The AudioOutput
class defines an implicit conversion to an Action<AudioBuffer>
, allowing the output to be passed directly to AudioDevice.StartRunning
.
Last updated