Reimplement continuous sounds (package dependencies should be reworked)

This commit is contained in:
jgk
2021-02-23 20:51:05 +01:00
parent 93ab10e77e
commit 47eb0b378b
5 changed files with 63 additions and 8 deletions
+2 -1
View File
@@ -245,7 +245,8 @@ data MenuState
data Sound = Sound { _soundTime :: Int
, _soundFadeTime :: Int
, _soundChannel :: Maybe Int
--, _soundChannel :: Maybe Int
, _soundChannel :: Maybe Mix.Channel
, _soundPos :: Maybe Point2
, _soundType :: Int
}
+1
View File
@@ -63,6 +63,7 @@ update w
cid = _clID cr
updateSoundQueue = set soundQueue []
. set sounds M.empty
--updateSound :: World -> World
--updateSound = set soundQueue [] . stepSoundTimers