Skip to content

FormatChunk

AutumnSky1010 edited this page Nov 18, 2022 · 5 revisions

Struct FormatChunk

Definition

Namespace: SoundMaker.WaveFile
Assembly: SoundMaker.dll

Chunk of format for the .wav file.

public struct FormatChunk : IChunk

Inheritance

Object -> FormatChunk

Implements

Constructors

FormatChunk(SamplingFrequencyType, BitRateType, ChannelType)

Declaration

public FormatChunk(SamplingFrequencyType samplingFrequency, BitRateType bitRate, ChannelType channel)

Parameters

Type Desctiption
SamplingFrequencyType Sampling frequency
BitRateType Bit rate
ChannelType Type of channels count

Properties

SamplingFrequency

Declaration

public uint SamplingFrequency { get; }

Property Value

Type Desctiption
uint

BitRate

Declaration

public ushort BitRate { get; }

Property Value

Type Desctiption
ushort

Methods

GetBytes()

Get array of this chunk.
Declaration

public byte[] GetBytes()

Returns

Type Desctiption
byte[] Array of this chunk to write to the .wav file.
Clone this wiki locally