]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed flags to make and tests easier
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 2 Feb 2004 00:50:11 +0000 (00:50 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 2 Feb 2004 00:50:11 +0000 (00:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/sound.h

index c96dc74cfc2d31ce8b6d06fb5ca3b61cebc1a696..9cd472ad9b8ed42c2a716359cd90a32ff2b6cb8c 100644 (file)
@@ -27,7 +27,7 @@ enum wxSoundFlags
 {
     wxSOUND_SYNC   = 0,
     wxSOUND_ASYNC  = 1,
-    wxSOUND_LOOP   = 2 | wxSOUND_ASYNC
+    wxSOUND_LOOP   = 2
 };
 
 class wxSoundBase : public wxObject
@@ -51,7 +51,7 @@ inline bool wxSoundBase::Play(bool async, bool looped)
 {
     unsigned flags = 0;
     if (async) flags |= wxSOUND_ASYNC;
-    if (looped) flags |= wxSOUND_LOOP;
+    if (looped) flags |= wxSOUND_LOOP | wxSOUND_ASYNC;
     return DoPlay(flags);
 }
 #endif