courtesy of Ryan Norton.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28382
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
DisposeMovie(m_movie);
m_movie = NULL ;
Stop();
DisposeMovie(m_movie);
m_movie = NULL ;
Stop();
+
+ //Note that ExitMovies() is not neccessary, but
+ //the docs are fuzzy on whether or not TerminateQTML is
+ ExitMovies();
+
+ #ifndef __WXMAC__
+ TerminateQTML();
+ #endif
long result;
error = Gestalt (gestaltQuickTime, &result);
long result;
error = Gestalt (gestaltQuickTime, &result);
- return (error == noErr) && (result >= 4); //result >= 4 correct?
+ return (error == noErr) && (((result >> 16) & 0xffff) >= 0x0400);
#else
return true;
#endif
#else
return true;
#endif
}
bool wxSound::Create(const wxString& fileName, bool isResource)
}
bool wxSound::Create(const wxString& fileName, bool isResource)
SetMovieVolume(movie, kFullVolume);
GoToBeginningOfMovie(movie);
SetMovieVolume(movie, kFullVolume);
GoToBeginningOfMovie(movie);
+
+ DisposeHandle(myHandle);
}
break;
case wxSound_RESOURCE:
}
break;
case wxSound_RESOURCE:
- //Note that ExitMovies() is not neccessary, but
- //the docs are fuzzy on whether or not TerminateQTML is
- ExitMovies();
-
-#ifndef __WXMAC__
- TerminateQTML();
-#endif
return true;
}
#endif //wxUSE_SOUND
return true;
}
#endif //wxUSE_SOUND