FMOD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
void CMainDlg::OnReleasedcaptureSlider2(NMHDR* pNMHDR, LRESULT* pResult)
{
unsigned int lenms, currtime;
musicChannel->getPosition(&currtime,FMOD_TIMEUNIT_MS);
music->getLength(&lenms,FMOD_TIMEUNIT_MS);
unsigned int LengthMs = lenms;
m_lenslider.SetPos((float)currtime/(float)LengthMs * 1000.0f);
*pResult = 0;
}
|
doesnt work..why?
Last edited on
Topic archived. No new replies allowed.