Class NotifyingSampleProvider
- Namespace
- NAudio.Wave.SampleProviders
- Assembly
- NAudio.Core.dll
Simple class that raises an event on every sample
public class NotifyingSampleProvider : ISampleProvider, ISampleNotifier
- Inheritance
-
NotifyingSampleProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
NotifyingSampleProvider(ISampleProvider)
Initializes a new instance of NotifyingSampleProvider
public NotifyingSampleProvider(ISampleProvider source)
Parameters
sourceISampleProviderSource Sample Provider
Properties
WaveFormat
WaveFormat
public WaveFormat WaveFormat { get; }
Property Value
Methods
Read(Span<float>)
Reads samples from this sample provider
public int Read(Span<float> buffer)
Parameters
Returns
- int
Number of samples read
Events
Sample
Sample notifier
public event EventHandler<SampleEventArgs> Sample