MPLATFORMLib Namespace > MWriterClass Class : FormatAudioGetCount Method |
Public Overridable Sub FormatAudioGetCount( _ ByVal _eFormatType As eMFormatType, _ ByRef _pnCount As Integer _ )
public virtual void FormatAudioGetCount( eMFormatType _eFormatType, out int _pnCount )
public procedure FormatAudioGetCount( _eFormatType: eMFormatType; Out _pnCount: Integer ); virtual;
public: virtual void FormatAudioGetCount( eMFormatType _eFormatType, [PARAMFLAG::Out] int _pnCount )
Here is example of how to set standard format to the playlist:
Dim myPlaylist As New MPlaylistClass() Dim audProps As New M_AUD_PROPS() Dim strFormat As String Dim nCount As Integer myPlaylist.FormatAudioGetCount(nCount) myPlaylist.FormatAudioGetByIndex(eMFormatType.eMFT_Convert, nCount - 1, audProps, strFormat) myPlaylist.FormatAudioSet(eMFormatType.eMFT_Convert, audProps)
MPlaylistClass myPlaylist = new MPlaylistClass(); M_AUD_PROPS audProps = new M_AUD_PROPS(); string strFormat; int nCount; myPlaylist.FormatAudioGetCount(out nCount); myPlaylist.FormatAudioGetByIndex(eMFormatType.eMFT_Convert, nCount - 1, out audProps, out strFormat); myPlaylist.FormatAudioSet(eMFormatType.eMFT_Convert, ref audProps);
var myPlaylist: MPlaylist; myFormat: IMFormat; nCount: integer; audProps: M_AUD_PROPS; strFormat: string; begin myPlaylist:= CreateComObject(CLASS_MPlaylist) as MPlaylist; myFormat := myPlaylist as IMFormat; myFormat.FormatAudioGetCount(nCount); myFormat.FormatAudioGetByIndex(eMFT_Convert, nCount-2, audProps, strFormat); myFormat.FormatAudioSet(eMFT_Convert, audProps); end;