Platforms to show: All Mac Windows Linux Cross-Platform

Back to DirectShowWaveFormatMBS class.

DirectShowWaveFormatMBS.AvgBytesPerSec as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DirectShow MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Required average data-transfer rate, in bytes per second, for the format tag.

If wFormatTag is WAVE_FORMAT_PCM, nAvgBytesPerSec must equal nSamplesPerSec x nBlockAlign. For non-PCM formats, this member must be computed according to the manufacturer's specification of the format tag.
(Read and Write property)

DirectShowWaveFormatMBS.BitsPerSample as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DirectShow MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Bits per sample for the FormatTag format type.

If wFormatTag is WAVE_FORMAT_PCM, then BitsPerSample 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. If FormatTag is WAVE_FORMAT_EXTENSIBLE, this value can be any integer multiple of 8.
Some compression schemes do not define a value for BitsPerSample, so this member can be zero.
(Read and Write property)

DirectShowWaveFormatMBS.BlockAlign as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DirectShow MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Block alignment, in bytes.

The block alignment is the minimum atomic unit of data for the wFormatTag format type. If wFormatTag is WAVE_FORMAT_PCM, nBlockAlign must equal (nChannels × wBitsPerSample) / 8. For non-PCM formats, this member must be computed according to the manufacturer's specification of the format tag.
Software must process a multiple of nBlockAlign bytes of data at a time. Data written to 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).
(Read and Write property)

DirectShowWaveFormatMBS.Channels as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DirectShow MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Number of channels in the waveform-audio data.

Monaural data uses one channel and stereo data uses two channels.
(Read and Write property)

DirectShowWaveFormatMBS.Data as Ptr

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DirectShow MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Pointer to raw data of WAVEFORMATEX structure.

(Read only property)

DirectShowWaveFormatMBS.FormatTag as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DirectShow MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Waveform-audio format type.

Format tags are registered with Microsoft Corporation for many compression algorithms. A complete list of format tags can be found in the Mmreg.h header file. For one- or two-channel Pulse Code Modulation (PCM) data, this value should be WAVE_FORMAT_PCM.

  • If FormatTag equals WAVE_FORMAT_EXTENSIBLE, the structure is interpreted as a WAVEFORMATEXTENSIBLE structure.
  • If FormatTag equals WAVE_FORMAT_MPEG, the structure is interpreted as an MPEG1WAVEFORMAT structure.
  • If FormatTag equals WAVE_FORMAT_MPEGLAYER3, the structure is interpreted as an MPEGLAYER3WAVEFORMAT structure.

Before reinterpreting a WAVEFORMATEX structure as one of these extended structures, verify that the actual structure size is sufficiently large and that the cbSize member indicates a valid size.

Please contact MBS if you need the above structures as classes in Xojo.
(Read and Write property)

DirectShowWaveFormatMBS.SamplesPerSec as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DirectShow MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Sample rate, in samples per second (hertz).

If FormatTag is WAVE_FORMAT_PCM, then common values for SamplesPerSec are 8.0 kHz, 11.025 kHz, 22.05 kHz, and 44.1 kHz. For non-PCM formats, this member must be computed according to the manufacturer's specification of the format tag.
(Read and Write property)

DirectShowWaveFormatMBS.Size as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property DirectShow MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Size, in bytes, of extra format information appended to the end of the WAVEFORMATEX structure.

This information can be used by non-PCM formats to store extra attributes for the wFormatTag. If no extra information is required by the wFormatTag, this member must be set to zero. For WAVE_FORMAT_PCM formats (and only WAVE_FORMAT_PCM formats), this member is ignored. However it is still recommended to set the value.
(Read and Write property)

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...