Copyright © 2006-2019 MultiMedia Soft

EncodeFormats.ResampleNativeFormatGetDesc method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the friendly description for a given recording format (e.g. "44100 Hz, Stereo, 16-bit").

The number of available recording formats can be obtained using the EncodeFormats.ResampleNativeFormatsGetCount 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.

 

 

Syntax

 

[Visual Basic]

Public Function ResampleNativeFormatGetDesc (

nInputDevice as Int16,

nFormatIndex as Int16

) as string


 

[C#]

public string ResampleNativeFormatGetDesc (

Int16 nInputDevice,

Int16 nFormatIndex

);


 

[C++]

public: string ResampleNativeFormatGetDesc (

Int16 nInputDevice,

Int16 nFormatIndex

);


 

 

Parameter

Description

 

 

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.

nFormatIndex

Number representing the zero-based index of the recording format

 

 

 

Return value

 

Value

Meaning

 

 

Empty string

An error occurred. Check the LastError property value in order to see the last error.

Valid string

The string containing the friendly description of the requested recording format.