示例#1
0
文件: mci.c 项目: BarryChen/RDA
UINT32 MCI_AudioGetPlayInformation(MCI_PlayInf* PlayInformation)     //  MCI_MEDIA_PLAY_REQ,         
{
	    
      INT32 result =MCI_ERR_NO;
	 if((audio_mode >=MCI_TYPE_3GP)&&(audio_mode <=MCI_TYPE_MJPG))
        {

	 INT16 img_width = 0;
	 INT16 img_height = 0;
	 INT32 totaltime = 0;

        UINT16  aud_channel;
        UINT16  aud_sample_rate;
        UINT16  track;

	  MCI_VideoGetInfo(&img_width,&img_height, &totaltime,&aud_channel,&aud_sample_rate,& track);
	  if(totaltime>0)
         	PlayInformation->PlayProgress= (INT32)((INT64)MCI_VideoGetPlayTime()*10000  / totaltime);
	  else
	  	PlayInformation->PlayProgress=0;
          
        }
      else   
            result = LILY_AudioGetPlayInformation(PlayInformation);
      
    	return result;
}
示例#2
0
文件: mci.c 项目: jprothwell/sc-fix
UINT32 MCI_AudioGetPlayInformation(MCI_PlayInf* PlayInformation)     //  MCI_MEDIA_PLAY_REQ,         
{
	    
    	return LILY_AudioGetPlayInformation(PlayInformation);
}