Table of Contents

Class LoopStream

Namespace
NAudio.Extras
Assembly
NAudio.Extras.dll

Loopable WaveStream

public class LoopStream : WaveStream, IAsyncDisposable, IDisposable, IWaveProvider
Inheritance
LoopStream
Implements
Inherited Members

Constructors

LoopStream(WaveStream)

Creates a new Loop stream

public LoopStream(WaveStream source)

Parameters

source WaveStream

Properties

Length

Length in bytes of this stream (effectively infinite)

public override long Length { get; }

Property Value

long

Position

Position within this stream in bytes

public override long Position { get; set; }

Property Value

long

WaveFormat

The WaveFormat of this stream

public override WaveFormat WaveFormat { get; }

Property Value

WaveFormat

Methods

Dispose(bool)

Dispose this WaveStream (disposes the source)

protected override void Dispose(bool disposing)

Parameters

disposing bool

HasData(int)

Always has data available

public override bool HasData(int count)

Parameters

count int

Returns

bool

Read(byte[], int, int)

Read data from this stream

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

Parameters

buffer byte[]
offset int
count int

Returns

int

Read(Span<byte>)

Read data from this stream

public override int Read(Span<byte> buffer)

Parameters

buffer Span<byte>

Returns

int