ltmmAudioFormats.Item Method

Visual Basic example

Syntax

object.Item(Index As Long) As ltmmAudioFormat

Remarks

Retrieves the audio format object at the specified zero based index.

If the method fails, an error is raised. For more information, refer to the Error Codes.

The ltmmCaptureCtrl.AudioCaptureFormats property is updated with an LtmmAudioFormats object that contains all the audio formats available for the current capture device.  The ltmmAudioFormats.Item method obtains an ltmmAudioFormat object for each of the supported audio formats. The ltmmAudioFormat properties of each ltmmAudioFormat object, obtained using the Item method, are updated with information about that specific audio format. This information includes the SampleFrequency property, BitsPerSample property, and the Channels property.

The ltmmAudioFormats.Count property is updated with the total number of available audio formats.

See Also

Elements:

ltmmAudioFormats Object, ltmmAudioFormats.Count property, ltmmAudioFormats.Selection property, ltmmAudioFormats.Find method

Topics:

Multimedia Properties, Methods and Events