Safe Haskell | None |
---|---|
Language | Haskell2010 |
Sounds
Synopsis
- initSounds :: IO ()
- closeSounds :: IO ()
- playRequestedSounds :: MetaInfo -> IO MetaInfo
- playBackgroundMusic :: Int -> IO ()
- playAllSounds :: SoundList -> [String] -> IO SoundList
Documentation
initSounds :: IO () #
Initialize SDL2-mixer (if sound is enabled)
closeSounds :: IO () #
Close SDL2-mixer (if sound is enabled)
playRequestedSounds :: MetaInfo -> IO MetaInfo #
Uses metaInfo's sounds/background music requests to play sounds, returns metaInfo with cleared requests.
Play background music by index in backgroundTracks. If index is incorrect, print error and do nothing.