IltmmPlay::get_SourceAudioFormat Example for C

char szSourceAudioFormat[256]; 
long lSourceAudioFormat; 
IltmmPlay__get_SourceAudioFormat(g_player, &lSourceAudioFormat); 
if (lSourceAudioFormat == 0) 
    strcpy(szSourceAudioFormat, "source audio format is not a standard format");
else
     sprintf(szSourceAudioFormat, "Source audio format is %d", lSourceAudioFormat); 
MessageBox(hwnd, szSourceAudioFormat, NULL, MB_OK);

L_MULTIMEDIATEX_API 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);
}