fix playbackrate

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton 2004-11-08 02:39:00 +00:00
parent 51884c2404
commit dff4be9392

View File

@ -257,12 +257,12 @@ bool wxMovieCtrl::Stop()
double wxMovieCtrl::GetPlaybackRate()
{
return (double) (::GetMovieTimeScale(m_movie) / 0x10000f);
return ( ((double)::GetMovieRate(m_movie)) / 0x10000);
}
bool wxMovieCtrl::SetPlaybackRate(double dRate)
{
::SetMovieTimeScale(m_movie, (Fixed) (dRate * 0x10000));
::SetMovieRate(m_movie, (Fixed) (dRate * 0x10000));
return ::GetMoviesError() == noErr;
}