SpWaveFormatEx AvgBytesPerSec property

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Object: SpWaveFormatEx

AvgBytesPerSec Property


The AvgBytesPerSec property gets and sets the required average data-transfer rate for the format tag in bytes per second.

If the FormatTag property is WAVE_FORMAT_PCM, AvgBytesPerSec should be equal to the product of SamplesPerSec and BlockAlign. For non-PCM formats, this member must be computed according to the manufacturer's specification of the format tag.

Playback and record software can estimate buffer sizes using the AvgBytesPerSec member.

Syntax

Set: SpWaveFormatEx.AvgBytesPerSec = Long
Get: Long = SpWaveFormatEx.AvgBytesPerSec

Parts

SpWaveFormatEx
The owning object.
Long
Set: A Long variable that sets the property.
Get: A Long variable that gets the property.

Example

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