FormatAudioGet Method (MFWriterClass)
format type
audio properties
index of the format
format's name
Gets current audio format
Public Overridable Sub FormatAudioGet( _
   ByVal _eFormatType As eMFormatType, _
   ByRef _pAudProps As M_AUD_PROPS, _
   ByRef _pnIndex As Integer, _
   ByRef _pbsName As String _
public virtual void FormatAudioGet( 
   eMFormatType _eFormatType,
   out M_AUD_PROPS _pAudProps,
   out int _pnIndex,
   out string _pbsName
public procedure FormatAudioGet( 
    _eFormatType: eMFormatType;
   Out  _pAudProps: M_AUD_PROPS;
   Out  _pnIndex: Integer;
   Out  _pbsName: String
); virtual; 
public: virtual void FormatAudioGet( 
   eMFormatType _eFormatType,
   [PARAMFLAG::Out] M_AUD_PROPS _pAudProps,
   [PARAMFLAG::Out] int _pnIndex,
   [PARAMFLAG::Out] BSTR* _pbsName


format type
audio properties
index of the format
format's name

Here is an example of how to fill a combobox with all available input audio formats for a live source and select a current format:

M_AUD_PROPS audProps;
int fCount;
m_objLive.FormatAudioGetCount(eMFormatType.eMFT_Input, out fCount);
if (fCount > 0)
    for (int i = 0; i < fCount; i++)
        string name;
        m_objLive.FormatAudioGetByIndex(eMFormatType.eMFT_Input, i, out audProps, out name);
    // Get current format
    int nCurrent = 0;
        string strName;
        M_AUD_PROPS _audProps;
        m_objLive.FormatAudioGet(eMFormatType.eMFT_Input, out _audProps, out nCurrent, out strName);
    catch (System.Exception) { }
    // Select a current format
    comboBoxAF.SelectedIndex = nCurrent;
See Also


MFWriterClass Class
MFWriterClass Members