]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/sound.cpp
more wxUniv compilation fixes (bug 1085003)
[wxWidgets.git] / src / mac / carbon / sound.cpp
index a4870396eb5839ddef5a789b491958e2e322401f..af1144a5d702ad9ba6c61df02022f34cad8b7aed 100644 (file)
@@ -223,7 +223,7 @@ inline bool wxInitQT ()
         int nError;
         //-2093 no dll
             if ((nError = InitializeQTML(0)) != noErr)
-                wxLogSysError(wxString::Format("Couldn't Initialize Quicktime-%i", nError));
+                wxLogSysError(wxString::Format(wxT("Couldn't Initialize Quicktime-%i"), nError));
         #endif
         EnterMovies();
         return true;
@@ -474,8 +474,10 @@ bool wxSound::DoPlay(unsigned flags) const
         wxASSERT_MSG(!(flags & wxSOUND_LOOP), wxT("Can't loop and play syncronously at the same time"));
 
         //Play movie until it ends, then exit
+        //Note that due to quicktime caching this may not always 
+        //work 100% correctly
         while (!IsMovieDone(movie))
-            MoviesTask(movie, 0);
+            MoviesTask(movie, 1);
 
         DisposeMovie(movie);
     }