Click or drag to resize
WaveFormat Class
Describes the format of the waveform-audio data.
Inheritance Hierarchy
SystemObject
  Alvas.AudioWaveFormat

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public class WaveFormat

The WaveFormat type exposes the following members.

Constructors
  NameDescription
Public methodWaveFormat
Initializes a new instance of the WaveFormat class
Top
Methods
Fields
  NameDescription
Public fieldnAvgBytesPerSec
Required average data transfer rate, in bytes per second. For example, 16-bit stereo at 44.1 kHz has an average data rate of 176,400 bytes per second (2 channels — 2 bytes per sample per channel — 44,100 samples per second).
Public fieldnBlockAlign
Block alignment, in bytes. The block alignment is the minimum atomic unit of data. For PCM data, the block alignment is the number of bytes used by a single sample, including data for both channels if the data is stereo. For example, the block alignment for 16-bit stereo PCM is 4 bytes (2 channels — 2 bytes per sample).
Public fieldnChannels
Number of channels in the waveform-audio data. Mono data uses one channel and stereo data uses two channels.
Public fieldnSamplesPerSec
Sample rate, in samples per second.
Public fieldwBitsPerSample
Bits per sample for the wFormatTag format type. If wFormatTag is PCM, then wBitsPerSample should be equal to 8 or 16. For non-PCM formats, this member must be set according to the manufacturer's specification of the format tag. Note that some compression schemes cannot define a value for wBitsPerSample, so this member can be zero.
Public fieldwFormatTag
Format tag.
Top
See Also