Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- initAudioDevice :: IO ()
- closeAudioDevice :: WindowResources -> IO ()
- isAudioDeviceReady :: IO Bool
- setMasterVolume :: Float -> IO ()
- loadWave :: String -> IO Wave
- loadWaveFromMemory :: String -> [Integer] -> IO Wave
- loadSound :: String -> IO Sound
- loadSoundFromWave :: Wave -> IO Sound
- updateSound :: Sound -> Ptr () -> Int -> IO ()
- unloadSound :: Sound -> WindowResources -> IO ()
- isWaveReady :: Wave -> IO Bool
- isSoundReady :: Sound -> IO Bool
- exportWave :: Wave -> String -> IO Bool
- exportWaveAsCode :: Wave -> String -> IO Bool
- playSound :: Sound -> IO ()
- stopSound :: Sound -> IO ()
- pauseSound :: Sound -> IO ()
- resumeSound :: Sound -> IO ()
- isSoundPlaying :: Sound -> IO Bool
- setSoundVolume :: Sound -> Float -> IO ()
- setSoundPitch :: Sound -> Float -> IO ()
- setSoundPan :: Sound -> Float -> IO ()
- waveCopy :: Wave -> IO Wave
- waveCrop :: Wave -> Int -> Int -> IO Wave
- waveFormat :: Wave -> Int -> Int -> Int -> IO ()
- loadWaveSamples :: Wave -> IO [Float]
- loadMusicStream :: String -> WindowResources -> IO Music
- loadMusicStreamFromMemory :: String -> [Integer] -> WindowResources -> IO Music
- unloadMusicStream :: Music -> WindowResources -> IO ()
- isMusicReady :: Music -> IO Bool
- playMusicStream :: Music -> IO ()
- isMusicStreamPlaying :: Music -> IO Bool
- updateMusicStream :: Music -> IO ()
- stopMusicStream :: Music -> IO ()
- pauseMusicStream :: Music -> IO ()
- resumeMusicStream :: Music -> IO ()
- seekMusicStream :: Music -> Float -> IO ()
- setMusicVolume :: Music -> Float -> IO ()
- setMusicPitch :: Music -> Float -> IO ()
- setMusicPan :: Music -> Float -> IO ()
- getMusicTimeLength :: Music -> IO Float
- getMusicTimePlayed :: Music -> IO Float
- loadAudioStream :: Integer -> Integer -> Integer -> WindowResources -> IO AudioStream
- unloadAudioStream :: AudioStream -> WindowResources -> IO ()
- isAudioStreamReady :: AudioStream -> IO Bool
- updateAudioStream :: AudioStream -> Ptr () -> Int -> IO ()
- isAudioStreamProcessed :: AudioStream -> IO Bool
- playAudioStream :: AudioStream -> IO ()
- pauseAudioStream :: AudioStream -> IO ()
- resumeAudioStream :: AudioStream -> IO ()
- isAudioStreamPlaying :: AudioStream -> IO Bool
- stopAudioStream :: AudioStream -> IO ()
- setAudioStreamVolume :: AudioStream -> Float -> IO ()
- setAudioStreamPitch :: AudioStream -> Float -> IO ()
- setAudioStreamPan :: AudioStream -> Float -> IO ()
- setAudioStreamBufferSizeDefault :: Int -> IO ()
Documentation
initAudioDevice :: IO () Source #
closeAudioDevice :: WindowResources -> IO () Source #
setMasterVolume :: Float -> IO () Source #
unloadSound :: Sound -> WindowResources -> IO () Source #
Unloads an sound from RAM. Sounds are automatically unloaded
when closeAudioDevice
is called, so manually unloading sounds is
not required. In larger projects, you may want to manually unload
sounds to avoid having them in RAM for too long.
pauseSound :: Sound -> IO () Source #
resumeSound :: Sound -> IO () Source #
loadMusicStream :: String -> WindowResources -> IO Music Source #
loadMusicStreamFromMemory :: String -> [Integer] -> WindowResources -> IO Music Source #
unloadMusicStream :: Music -> WindowResources -> IO () Source #
Unloads a music stream from RAM. Music streams are automatically unloaded
when closeAudioDevice
is called, so manually unloading music streams is
not required. In larger projects, you may want to manually unload music
streams to avoid having them in RAM for too long.
playMusicStream :: Music -> IO () Source #
updateMusicStream :: Music -> IO () Source #
stopMusicStream :: Music -> IO () Source #
pauseMusicStream :: Music -> IO () Source #
resumeMusicStream :: Music -> IO () Source #
loadAudioStream :: Integer -> Integer -> Integer -> WindowResources -> IO AudioStream Source #
unloadAudioStream :: AudioStream -> WindowResources -> IO () Source #
Unloads an audio stream from RAM. Audio streams are automatically unloaded
when closeAudioDevice
is called, so manually unloading audio streams is
not required. In larger projects, you may want to manually unload audio
streams to avoid having them in RAM for too long.
isAudioStreamReady :: AudioStream -> IO Bool Source #
updateAudioStream :: AudioStream -> Ptr () -> Int -> IO () Source #
playAudioStream :: AudioStream -> IO () Source #
pauseAudioStream :: AudioStream -> IO () Source #
resumeAudioStream :: AudioStream -> IO () Source #
isAudioStreamPlaying :: AudioStream -> IO Bool Source #
stopAudioStream :: AudioStream -> IO () Source #
setAudioStreamVolume :: AudioStream -> Float -> IO () Source #
setAudioStreamPitch :: AudioStream -> Float -> IO () Source #
setAudioStreamPan :: AudioStream -> Float -> IO () Source #
setAudioStreamBufferSizeDefault :: Int -> IO () Source #