Export (0) Print
Expand All

SpWaveFormatEx BitsPerSample property (SAPI 5.3)

Speech API 5.3

Microsoft Speech API 5.3

Object: SpWaveFormatEx

BitsPerSample Property


The BitsPerSample property gets and sets the bits per sample for the FormatTag format type.

If FormatTag is WAVE_FORMAT_PCM, 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.

Note that some compression schemes cannot define a value for BitsPerSample, so this member can be zero.

Syntax

Set: SpWaveFormatEx.BitsPerSample = Integer
Get: Integer = SpWaveFormatEx.BitsPerSample

Parts

SpWaveFormatEx
The owning object.
Integer
Set: An Integer variable that sets the property.
Get: An Integer variable that gets the property.

Example

For an example of the use of the BitsPerSample property, see the code example in the SpAudioFormat GetWaveFormatEx section.

Show:
© 2014 Microsoft