MFAudioSaveToFile Method (IMFFrame)
path to a file to which audio will be saved
indicates will be the audio appended to the existed file ("1") or the file will be overwritten ("0")
Save audio to file (WAV format is used). If the file is exist and have WAV format then audio will be added to the end of the file.
Note: format is not checked.
Syntax
Sub MFAudioSaveToFile( _
   ByVal _bsFileName As String, _
   ByVal _bAppend As Integer _
) 
void MFAudioSaveToFile( 
   string _bsFileName,
   int _bAppend
)
procedure MFAudioSaveToFile( 
    _bsFileName: String;
    _bAppend: Integer
); 
void MFAudioSaveToFile( 
   BSTR* _bsFileName,
   int _bAppend
) 

Parameters

_bsFileName
path to a file to which audio will be saved
_bAppend
indicates will be the audio appended to the existed file ("1") or the file will be overwritten ("0")
Example

Here is an example of how to get a frame and save its audio into a file:

                
m_objMFReader = new MFReaderClass();
m_objMFReader.ReaderOpen(sourceFileName, "");
m_avProps = new M_AV_PROPS(); // set video format for conversion
m_avProps.vidProps.eVideoFormat = eMVideoFormat.eMVF_HD1080_5994i;
MFFrame pFrame = null;
// Get next frame or frame by position
if (m_objMFReader != null)
    m_objMFReader.SourceFrameConvertedGetByTime(ref m_avProps, -1, -1, out pFrame, "");
pFrame.MFAudioSaveToFile(@"c:\test.wav");
See Also

Reference

IMFFrame Interface
IMFFrame Members