Class LoopStream
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
sourceWaveStream
Properties
Length
Length in bytes of this stream (effectively infinite)
public override long Length { get; }
Property Value
Position
Position within this stream in bytes
public override long Position { get; set; }
Property Value
WaveFormat
The WaveFormat of this stream
public override WaveFormat WaveFormat { get; }
Property Value
Methods
Dispose(bool)
Dispose this WaveStream (disposes the source)
protected override void Dispose(bool disposing)
Parameters
disposingbool
HasData(int)
Always has data available
public override bool HasData(int count)
Parameters
countint
Returns
Read(byte[], int, int)
Read data from this stream
public override int Read(byte[] buffer, int offset, int count)
Parameters
Returns
Read(Span<byte>)
Read data from this stream
public override int Read(Span<byte> buffer)