Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bindings to raudio
Synopsis
- initAudioDevice :: IO ()
- closeAudioDevice :: WindowResources -> IO ()
- isAudioDeviceReady :: IO Bool
- setMasterVolume :: Float -> IO ()
- getMasterVolume :: IO Float
- loadWave :: String -> IO Wave
- loadWaveFromMemory :: String -> [Integer] -> IO Wave
- loadSound :: String -> WindowResources -> IO Sound
- loadSoundFromWave :: Wave -> WindowResources -> IO Sound
- loadSoundAlias :: Sound -> WindowResources -> IO Sound
- unloadSoundAlias :: Sound -> WindowResources -> IO ()
- 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 ()
- setAudioStreamCallback :: AudioStream -> AudioCallback -> WindowResources -> IO C'AudioCallback
- attachAudioStreamProcessor :: AudioStream -> AudioCallback -> WindowResources -> IO C'AudioCallback
- detachAudioStreamProcessor :: AudioStream -> C'AudioCallback -> WindowResources -> IO ()
- attachAudioMixedProcessor :: AudioCallback -> WindowResources -> IO C'AudioCallback
- detachAudioMixedProcessor :: C'AudioCallback -> WindowResources -> IO ()
- c'initAudioDevice :: IO ()
- c'closeAudioDevice :: IO ()
- c'isAudioDeviceReady :: IO CBool
- c'setMasterVolume :: CFloat -> IO ()
- c'getMasterVolume :: IO CFloat
- c'loadWave :: CString -> IO (Ptr Wave)
- c'loadWaveFromMemory :: CString -> Ptr CUChar -> CInt -> IO (Ptr Wave)
- c'loadSound :: CString -> IO (Ptr Sound)
- c'loadSoundFromWave :: Ptr Wave -> IO (Ptr Sound)
- c'loadSoundAlias :: Ptr Sound -> IO (Ptr Sound)
- c'updateSound :: Ptr Sound -> Ptr () -> CInt -> IO ()
- c'isWaveReady :: Ptr Wave -> IO CBool
- c'unloadWave :: Ptr Wave -> IO ()
- c'isSoundReady :: Ptr Sound -> IO CBool
- c'unloadSound :: Ptr Sound -> IO ()
- c'unloadSoundAlias :: Ptr Sound -> IO ()
- c'exportWave :: Ptr Wave -> CString -> IO CBool
- c'exportWaveAsCode :: Ptr Wave -> CString -> IO CBool
- c'playSound :: Ptr Sound -> IO ()
- c'stopSound :: Ptr Sound -> IO ()
- c'pauseSound :: Ptr Sound -> IO ()
- c'resumeSound :: Ptr Sound -> IO ()
- c'isSoundPlaying :: Ptr Sound -> IO CBool
- c'setSoundVolume :: Ptr Sound -> CFloat -> IO ()
- c'setSoundPitch :: Ptr Sound -> CFloat -> IO ()
- c'setSoundPan :: Ptr Sound -> CFloat -> IO ()
- c'waveCopy :: Ptr Wave -> IO (Ptr Wave)
- c'waveCrop :: Ptr Wave -> CInt -> CInt -> IO ()
- c'waveFormat :: Ptr Wave -> CInt -> CInt -> CInt -> IO ()
- c'loadWaveSamples :: Ptr Wave -> IO (Ptr CFloat)
- c'unloadWaveSamples :: Ptr CFloat -> IO ()
- c'loadMusicStream :: CString -> IO (Ptr Music)
- c'loadMusicStreamFromMemory :: CString -> Ptr CUChar -> CInt -> IO (Ptr Music)
- c'isMusicReady :: Ptr Music -> IO CBool
- c'unloadMusicStream :: Ptr Music -> IO ()
- c'playMusicStream :: Ptr Music -> IO ()
- c'isMusicStreamPlaying :: Ptr Music -> IO CBool
- c'updateMusicStream :: Ptr Music -> IO ()
- c'stopMusicStream :: Ptr Music -> IO ()
- c'pauseMusicStream :: Ptr Music -> IO ()
- c'resumeMusicStream :: Ptr Music -> IO ()
- c'seekMusicStream :: Ptr Music -> CFloat -> IO ()
- c'setMusicVolume :: Ptr Music -> CFloat -> IO ()
- c'setMusicPitch :: Ptr Music -> CFloat -> IO ()
- c'setMusicPan :: Ptr Music -> CFloat -> IO ()
- c'getMusicTimeLength :: Ptr Music -> IO CFloat
- c'getMusicTimePlayed :: Ptr Music -> IO CFloat
- c'loadAudioStream :: CUInt -> CUInt -> CUInt -> IO (Ptr AudioStream)
- c'isAudioStreamReady :: Ptr AudioStream -> IO CBool
- c'unloadAudioStream :: Ptr AudioStream -> IO ()
- c'updateAudioStream :: Ptr AudioStream -> Ptr () -> CInt -> IO ()
- c'isAudioStreamProcessed :: Ptr AudioStream -> IO CBool
- c'playAudioStream :: Ptr AudioStream -> IO ()
- c'pauseAudioStream :: Ptr AudioStream -> IO ()
- c'resumeAudioStream :: Ptr AudioStream -> IO ()
- c'isAudioStreamPlaying :: Ptr AudioStream -> IO CBool
- c'stopAudioStream :: Ptr AudioStream -> IO ()
- c'setAudioStreamVolume :: Ptr AudioStream -> CFloat -> IO ()
- c'setAudioStreamPitch :: Ptr AudioStream -> CFloat -> IO ()
- c'setAudioStreamPan :: Ptr AudioStream -> CFloat -> IO ()
- c'setAudioStreamBufferSizeDefault :: CInt -> IO ()
- c'setAudioStreamCallback :: Ptr AudioStream -> C'AudioCallback -> IO ()
- c'attachAudioStreamProcessor :: Ptr AudioStream -> C'AudioCallback -> IO ()
- c'detachAudioStreamProcessor :: Ptr AudioStream -> C'AudioCallback -> IO ()
- c'attachAudioMixedProcessor :: C'AudioCallback -> IO ()
- c'detachAudioMixedProcessor :: C'AudioCallback -> IO ()
- mk'audioCallback :: (Ptr () -> CUInt -> IO ()) -> IO C'AudioCallback
- createAudioCallback :: AudioCallback -> IO C'AudioCallback
High level
initAudioDevice :: IO () Source #
closeAudioDevice :: WindowResources -> IO () Source #
setMasterVolume :: Float -> IO () Source #
loadSoundFromWave :: Wave -> WindowResources -> IO Sound Source #
loadSoundAlias :: Sound -> WindowResources -> IO Sound Source #
unloadSoundAlias :: Sound -> WindowResources -> IO () Source #
Unloads a sound alias from RAM
unloadSound :: Sound -> WindowResources -> IO () Source #
Unloads a 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 #
setAudioStreamCallback :: AudioStream -> AudioCallback -> WindowResources -> IO C'AudioCallback Source #
attachAudioStreamProcessor :: AudioStream -> AudioCallback -> WindowResources -> IO C'AudioCallback Source #
detachAudioStreamProcessor :: AudioStream -> C'AudioCallback -> WindowResources -> IO () Source #
detachAudioMixedProcessor :: C'AudioCallback -> WindowResources -> IO () Source #
Native
c'initAudioDevice :: IO () Source #
c'closeAudioDevice :: IO () Source #
c'setMasterVolume :: CFloat -> IO () Source #
c'loadAudioStream :: CUInt -> CUInt -> CUInt -> IO (Ptr AudioStream) Source #
c'isAudioStreamReady :: Ptr AudioStream -> IO CBool Source #
c'unloadAudioStream :: Ptr AudioStream -> IO () Source #
c'updateAudioStream :: Ptr AudioStream -> Ptr () -> CInt -> IO () Source #
c'playAudioStream :: Ptr AudioStream -> IO () Source #
c'pauseAudioStream :: Ptr AudioStream -> IO () Source #
c'resumeAudioStream :: Ptr AudioStream -> IO () Source #
c'stopAudioStream :: Ptr AudioStream -> IO () Source #
c'setAudioStreamVolume :: Ptr AudioStream -> CFloat -> IO () Source #
c'setAudioStreamPitch :: Ptr AudioStream -> CFloat -> IO () Source #
c'setAudioStreamPan :: Ptr AudioStream -> CFloat -> IO () Source #
c'setAudioStreamBufferSizeDefault :: CInt -> IO () Source #
c'setAudioStreamCallback :: Ptr AudioStream -> C'AudioCallback -> IO () Source #
c'attachAudioStreamProcessor :: Ptr AudioStream -> C'AudioCallback -> IO () Source #
c'detachAudioStreamProcessor :: Ptr AudioStream -> C'AudioCallback -> IO () Source #
c'attachAudioMixedProcessor :: C'AudioCallback -> IO () Source #
c'detachAudioMixedProcessor :: C'AudioCallback -> IO () Source #
Callbacks
mk'audioCallback :: (Ptr () -> CUInt -> IO ()) -> IO C'AudioCallback Source #