Copyright © 2006-2019 MultiMedia Soft

EncodeFormats.ACM.GetCodecFormatWavDataLength method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the size in bytes of the WAVEFORMATEX data structure that describes the format of the given ACM codec.

 

The WAVEFORMATEX data structure that describes the given format can be obtained using the EncodeFormats.ACM.GetCodecFormatWavData method.

 

For further details about using the Windows Audio Compression Manager refer to the ACM object section.

For a tutorial about the use of the Windows Audio Compression Manager refer to the How to use the Windows Audio Compression Manager section.

For further information about available encoding formats see the EncodeFormats object.

 

 

Syntax

 

[Visual Basic]

control.EncodeFormats.ACM.GetCodecFormatWavDataLength (

nCodecIndex as integer,

nCodecFormatIndex as integer,

sizeWavData as long

) as enumErrorCodes


 

[C++]

short control.EncodeFormats.ACM.GetCodecFormatWavDataLength (

short nCodecIndex,

short nCodecFormatIndex,

long *sizeWavData

);


 

 

Parameter

Description

 

 

nCodecIndex

Number representing the zero-based index of the ACM codec

nCodecFormatIndex

Number representing the zero-based index of the format for the given ACM codec

sizeWavData

Reference that, on return from the method call, will contain the size in bytes of the WAVEFORMATEX data structure: it's important to note that this value will be inclusive of any extra-byte required by the specific format.

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful