Skip to main content
Version: 21 Aug 2024

BufferFormat

Buffer format settings for input and output streams.

Public Fields

BitsPerSample

Number of bits per sample.


public uint BitsPerSample { get; set; }


ChannelCount

Number of channels.


public uint ChannelCount { get; set; }


ChannelFormat

Channel format.


public ChannelFormatType ChannelFormat { get; set; }

TypeDescription
ChannelFormatTypePossible channel formats for input and output streams.

SampleFormat

Integer or float.


public SampleFormatType SampleFormat { get; set; }

TypeDescription
SampleFormatTypePossible sample formats for input and output streams.

SamplesPerSecond

Sample rate.


public uint SamplesPerSecond { get; set; }


ValidBitsPerSample

Number of bits used per sample.


public uint ValidBitsPerSample { get; set; }


Public Methods

BufferFormat

public BufferFormat(
uint channelCount,
uint samplesPerSecond,
uint bitsPerSample,
SampleFormatType sampleFormat =SampleFormatType.Float,
ChannelFormatType channelFormat =ChannelFormatType.Default
)

Parameters

TypeNameDescription
uintchannelCount
uintsamplesPerSecond
uintbitsPerSample
SampleFormatTypesampleFormatPossible sample formats for input and output streams.
ChannelFormatTypechannelFormatPossible channel formats for input and output streams.

override string ToString

public override string ToString()