Reimplement continuous sounds (package dependencies should be reworked)
This commit is contained in:
+2
-1
@@ -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
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ update w
|
||||
cid = _clID cr
|
||||
|
||||
updateSoundQueue = set soundQueue []
|
||||
. set sounds M.empty
|
||||
|
||||
--updateSound :: World -> World
|
||||
--updateSound = set soundQueue [] . stepSoundTimers
|
||||
|
||||
Reference in New Issue
Block a user