Packages
 In this topic

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class WaveFormatEx

public final class WaveFormatEx
{
  // Fields
  public int avgBytesPerSec;
  public int bitsPerSample;
  public int blockAlign;
  public int channels;
  public byte[] extra;
  public int formatTag;
  public int samplesPerSec;
  public int size;
}

Specifies the format of data in a sound buffer.

Fields

avgBytesPerSec
Required average data-transfer rate, in bytes per second, for the format tag.
bitsPerSample
Bits per sample for the formatTag format type. If a compression scheme cannot define a bits-per-sample value, this field is zero.
blockAlign
Block alignment, in bytes. The block alignment is the minimum atomic unit of data for the formatTag format type. Playback and record software must process a multiple of blockAlign bytes of data at a time. Data written and read from a device must always start at the beginning of a block. For example, it is illegal to start playback of PCM data in the middle of a sample (that is, on a non-block-aligned boundary).
channels
Number of channels in the waveform-audio data. Monaural data uses one channel and stereo data uses two channels.
extra
Array variable that contains extra format information.
formatTag
Waveform-audio format type. Format tags are registered with Microsoft Corporation for many compression algorithms.
samplesPerSec
Sample rate, in samples per second (hertz), that each channel should be played or recorded.
size
Size, in bytes, of extra format information.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.