Microsoft SDK for Java

WaveFormatEx Class Fields

The WaveFormatEx Class contains the following 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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.