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 the Windows Audio Compression Manager refer to the EncodeACM class 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 EncodeFormatsMan class.
Syntax
[Visual Basic]
Public Function GetCodecFormatWavDataLength (
nCodecIndex as Int16,
nCodecFormatIndex as Int16,
ByRef sizeWavData as Int32
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes GetCodecFormatWavDataLength (
Int16 nCodecIndex,
Int16 nCodecFormatIndex,
ref Int32 sizeWavData
);
|
|
[C++]
public: enumErrorCodes GetCodecFormatWavDataLength (
Int16 nCodecIndex,
Int16 nCodecFormatIndex,
Int32 __gc *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
|
|