Table of Contents

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

source ISampleProvider

Source Sample Provider

Properties

WaveFormat

WaveFormat

public WaveFormat WaveFormat { get; }

Property Value

WaveFormat

Methods

Read(Span<float>)

Reads samples from this sample provider

public int Read(Span<float> buffer)

Parameters

buffer Span<float>

Sample buffer

Returns

int

Number of samples read

Events

Sample

Sample notifier

public event EventHandler<SampleEventArgs> Sample

Event Type

EventHandler<SampleEventArgs>