This commit is contained in:
jgk
2021-04-08 11:18:10 +02:00
parent ea0dfbe1df
commit 28c1f3d23b
3 changed files with 38 additions and 37 deletions
+5 -2
View File
@@ -6,15 +6,18 @@ module Preload
where
import Preload.Data
import Preload.Update
import Picture.Preload
import Sound.Data
import Control.Lens
import Control.Lens
import GHC.Word (Word32)
import qualified SDL.Mixer as Mix
cleanUpPreload :: PreloadData a -> IO ()
cleanUpPreload pd = do
cleanUpRenderPreload $ _renderData pd
cleanUpSoundPreload $ _soundData pd
cleanUpSoundPreload :: SoundData a -> IO ()
cleanUpSoundPreload sd = Mix.closeAudio
-2
View File
@@ -32,5 +32,3 @@ data Sound = Sound
makeLenses ''SoundData
makeLenses ''Sound
cleanUpSoundPreload :: SoundData a -> IO ()
cleanUpSoundPreload sd = Mix.closeAudio