Пример #1
0
UINT32 MCI_AudioGetDurationTime(HANDLE fileHandle, mci_type_enum fielType,INT32 BeginPlayProgress,INT32 OffsetPlayProgress,MCI_ProgressInf* PlayInformation) 
{ 

	return apfs_GetDurationTime( fileHandle,  fielType, BeginPlayProgress, OffsetPlayProgress, PlayInformation);

#if 0
   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;
               UINT16  audio_type;
              INT64  current_Progress;
        
	      MMI_FS_Seek(fileHandle, 0, 0);
            result=MCI_VideoOpenFile(2,2, fileHandle, 0, 0, fielType, MCI_vid_play_finish_ind,NULL);
			  
	     MCI_VideoGetInfo(&img_width,&img_height, &totaltime,&aud_channel,&aud_sample_rate,& track);

             current_Progress= (((INT64)OffsetPlayProgress*(INT64)totaltime)/10000);
              
             MCI_VideoSeek (current_Progress, SEEK_TIME_MODE_ABSOLUTE, 0, 0) ; 
			 
              PlayInformation->DurationTime= MCI_VideoGetPlayTime();//*10000/ totaltime;

	   result = MCI_VideoStop();
          result = MCI_VideoClose();
			
        }
      else
       result = apfs_GetDurationTime( fileHandle,  fielType, BeginPlayProgress, OffsetPlayProgress, PlayInformation);

     return  result;
#endif
}
Пример #2
0
UINT32 MCI_AudioGetDurationTime(HANDLE fileHandle, mci_type_enum fielType,INT32 BeginPlayProgress,INT32 OffsetPlayProgress,MCI_ProgressInf* PlayInformation) 
{ 
     return apfs_GetDurationTime( fileHandle,  fielType, BeginPlayProgress, OffsetPlayProgress, PlayInformation);
}