Copyright © 2006-2018 MultiMedia Soft

EncodeFormats.ResampleNativeFormatsGetCount method

Previous pageReturn to chapter overviewNext page



Retrieves the number of supported recording formats.

The friendly description of each recording format can be obtained using the EncodeFormats.ResampleNativeFormatGetDesc method.


This method can be called only when the Status property is different from RECORD_STATUS_NOT_READY.


For further details about encoding and resampling options refer to the EncodeFormatsMan class section.




[Visual Basic]

Public Function ResampleNativeFormatsGetCount (

nInputDevice as Int16

) as Int16



public Int16 ResampleNativeFormatsGetCount (

Int16 nInputDevice




public: Int16 ResampleNativeFormatsGetCount (

Int16 nInputDevice









Number representing the zero-based index of the input device. Use the value returned by the GetInputDevicesCount method in order to know how many input devices are currently installed on the system and the GetInputDeviceDesc method in order to retrieve the friendly name of each input device.




Return value






Negative value

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

> 0

The number of supported formats.