Logo

long sapi_lipsync::bytes_to_milli DWORD  dwBytes  )  [inline]
 

converts audio bytes into milliseconds using the sample rate of the audio stream

Parameters:
dwBytes - [in] byte position in the audio stream
Returns:
millisecond timing for the audio at the specified byte

Definition at line 176 of file sapi_lipsync.h.

00177     {
00178         return (UINT)((dwBytes * 1000 )/ m_pWaveFmt->nAvgBytesPerSec); 
00179     }


Copyright (C) 2002-2005 Annosoft LLC. All Rights Reserved.
Visit us at www.annosoft.com