Copyright © 2008-2018 MultiMedia Soft

EncodeFormats.ACM.GetCodecFormatsCount method

Previous pageReturn to chapter overviewNext page



Returns the number of formats available for the given ACM codec.


The friendly description of each ACM format can be obtained using the EncodeFormats.ACM.GetCodecFormatDesc method.


For further details about using 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.





[Visual Basic]

Public Function GetCodecFormatsCount (

nCodecIndex as integer

) as Int16



public Int16 GetCodecFormatsCount (

Int16 nCodecIndex




public: Int16 GetCodecFormatsCount (

Int16 nCodecIndex









Number representing the zero-based index of the ACM codec




Return value






Negative value

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

> 0

The number of available formats.