Add quicksave
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ tryPlay sd s = do
|
||||
i <- tryGetChannel s
|
||||
_ <- liftIO $ do
|
||||
Mix.halt i
|
||||
Mix.playOn i Mix.Once (sd IM.! (_getSoundID $ _soundChunkID s))
|
||||
Mix.playOn i Mix.Once (sd IM.! _getSoundID (_soundChunkID s))
|
||||
return $ s
|
||||
& soundChannel ?~ i
|
||||
& soundStatus .~ JustStartedPlaying
|
||||
|
||||
Reference in New Issue
Block a user