Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.27
LEADTOOLS Media Foundation Help

IltmfConvert::get_SourceAudioFormat Example for C++

Show in webframe
void GetConvertSourceAudioFormat(IltmfConvert *pConvert)
{
   CString  strSourceAudioFormat;
   long     lSourceAudioFormat;
   // get the source audio format FOURCC number
   HRESULT hr = pConvert->get_SourceAudioFormat(&lSourceAudioFormat);
   if (SUCCEEDED(hr))
   {
      if (lSourceAudioFormat == 0)
         strSourceAudioFormat = TEXT("Source audio format is not a standard format");
      else
         strSourceAudioFormat.Format(TEXT("Source audio format is %d"), lSourceAudioFormat);
      // display the source audio format
      MessageBox(NULL, strSourceAudioFormat, TEXT("Source Audio FOURCC Format"), MB_OK);
   }
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.