Table of Contents

Struct Stream

Namespace
Pie.Audio.Stream
Assembly
Pie.Audio.dll
public struct Stream : IAudioStream, IDisposable
Implements
Inherited Members

Constructors

Stream(void*)

public Stream(void* stream)

Parameters

stream void*

Properties

Format

public AudioFormat Format { get; }

Property Value

AudioFormat

PcmLength

public ulong PcmLength { get; }

Property Value

ulong

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

FromFile(string)

public static Stream FromFile(string path)

Parameters

path string

Returns

Stream

GetBuffer(ref byte[])

public ulong GetBuffer(ref byte[] buf)

Parameters

buf byte[]

Returns

ulong

GetPcm()

public byte[] GetPcm()

Returns

byte[]

Restart()

public void Restart()

Seek(double)

public void Seek(double position)

Parameters

position double

SeekSamples(ulong)

public void SeekSamples(ulong position)

Parameters

position ulong