Table of Contents

Class SilenceProvider

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

Silence producing wave provider Useful for playing silence when doing a WASAPI Loopback Capture

public class SilenceProvider : IWaveProvider
Inheritance
SilenceProvider
Implements
Inherited Members
Extension Methods

Constructors

SilenceProvider(WaveFormat)

Creates a new silence producing wave provider

public SilenceProvider(WaveFormat wf)

Parameters

wf WaveFormat

Desired WaveFormat (should be PCM / IEE float

Properties

WaveFormat

WaveFormat of this silence producing wave provider

public WaveFormat WaveFormat { get; }

Property Value

WaveFormat

Methods

Read(byte[], int, int)

Read silence from into the buffer

public int Read(byte[] buffer, int offset, int count)

Parameters

buffer byte[]
offset int
count int

Returns

int