IltmmPlay::get_SourceAudioFormat Example for C

void IltmmPlay_get_SourceAudioFormat_Example (IltmmPlay* pPlay)
{
   char szSourceAudioFormat[256]; 
   long lSourceAudioFormat; 

   IltmmPlay_get_SourceAudioFormat(pPlay, &lSourceAudioFormat); 

   if (lSourceAudioFormat == 0) 
      strcpy(szSourceAudioFormat, "source audio format is not a standard format");
   else
      sprintf(szSourceAudioFormat, "Source audio format is %d", lSourceAudioFormat); 

   MessageBox(NULL, szSourceAudioFormat, NULL, MB_OK);
}