Add sound on spawn, allow for filtering of to play sounds
This commit is contained in:
+2
-1
@@ -91,7 +91,8 @@ tryPlay sd s = do
|
||||
& soundChannel ?~ i
|
||||
& soundStatus . playStatus .~ JustStartedPlaying
|
||||
where
|
||||
timesToPlay | _soundIsLooping (_soundStatus s) = Mix.Forever
|
||||
timesToPlay
|
||||
| _soundIsLooping (_soundStatus s) = Mix.Forever
|
||||
| otherwise = Mix.Once
|
||||
|
||||
tryGetChannel :: Sound -> MaybeT IO Mix.Channel
|
||||
|
||||
Reference in New Issue
Block a user