ClintHeyer.Media
Class AviFile.WAVEFORMAT

Field Summary
int AverageBytesPerSec
         Specifies the average data rate, in bytes per second. If wFormatTag is WAVE_FORMAT_PCM, nAvgBytesPerSec must equal the product of nSamplesPerSec and nBlockAlign.
short BlockAlign
         Specifies the block alignment, in bytes. The block alignment is the minimum atomic unit of data. This value can be used for buffer alignment. If wFormatTag is WAVE_FORMAT_PCM, nBlockAlign must equal the product of nChannels and wBitsPerSample divided by 8.
short Channels
         Specifies the number of channels in the audio stream.
short FormatTag
         Specifies the audio waveform type. A complete list of format tags can be found in the Mmreg.h header file.
int SamplesPerSec
         Specifies the sample rate in samples/second (Hz). Common values are 8,000; 11,025; 22,050; and 44,100.

Constructor Summary
AviFile.WAVEFORMAT(System.IO.Stream stream)

Method Summary
void ReadData(System.IO.Stream stream)
string ToString()

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone


Field Detail

AverageBytesPerSec

public int AverageBytesPerSec

Specifies the average data rate, in bytes per second. If wFormatTag is WAVE_FORMAT_PCM, nAvgBytesPerSec must equal the product of nSamplesPerSec and nBlockAlign.


BlockAlign

public short BlockAlign

Specifies the block alignment, in bytes. The block alignment is the minimum atomic unit of data. This value can be used for buffer alignment. If wFormatTag is WAVE_FORMAT_PCM, nBlockAlign must equal the product of nChannels and wBitsPerSample divided by 8.


Channels

public short Channels

Specifies the number of channels in the audio stream.


FormatTag

public short FormatTag

Specifies the audio waveform type. A complete list of format tags can be found in the Mmreg.h header file.


SamplesPerSec

public int SamplesPerSec

Specifies the sample rate in samples/second (Hz). Common values are 8,000; 11,025; 22,050; and 44,100.

Constructor Detail

AviFile.WAVEFORMAT

public AviFile.WAVEFORMAT(System.IO.Stream stream)

Method Detail

ReadData

public void ReadData(System.IO.Stream stream)


ToString

public string ToString()