h-raylib-5.5.1.0: Raylib bindings for Haskell
Safe HaskellNone
LanguageHaskell2010

Raylib.Core.Audio

Description

Bindings to raudio

Synopsis

High level

setMasterVolume :: Float -> IO () Source #

loadWave :: String -> IO Wave Source #

loadWaveFromMemory :: String -> [Integer] -> IO Wave Source #

loadSound :: String -> IO Sound Source #

unloadSoundAlias :: Sound -> WindowResources -> IO () Source #

Unloads a managed sound alias from RAM

updateSound :: Sound -> Ptr () -> Int -> IO () Source #

unloadSound :: Sound -> WindowResources -> IO () Source #

Unloads a managed sound from RAM

isWaveReady :: Wave -> IO Bool Source #

isSoundReady :: Sound -> IO Bool Source #

exportWave :: Wave -> String -> IO Bool Source #

exportWaveAsCode :: Wave -> String -> IO Bool Source #

playSound :: Sound -> IO () Source #

stopSound :: Sound -> IO () Source #

pauseSound :: Sound -> IO () Source #

setSoundVolume :: Sound -> Float -> IO () Source #

setSoundPitch :: Sound -> Float -> IO () Source #

setSoundPan :: Sound -> Float -> IO () Source #

waveCrop :: Wave -> Int -> Int -> IO Wave Source #

waveFormat :: Wave -> Int -> Int -> Int -> IO () Source #

loadWaveSamples :: Wave -> IO [Float] Source #

loadMusicStream :: String -> IO Music Source #

loadMusicStreamFromMemory :: String -> [Integer] -> IO Music Source #

unloadMusicStream :: Music -> WindowResources -> IO () Source #

Unloads a managed music stream from RAM

isMusicReady :: Music -> IO Bool Source #

seekMusicStream :: Music -> Float -> IO () Source #

setMusicVolume :: Music -> Float -> IO () Source #

setMusicPitch :: Music -> Float -> IO () Source #

setMusicPan :: Music -> Float -> IO () Source #

loadAudioStream :: Integer -> Integer -> Integer -> IO AudioStream Source #

unloadAudioStream :: AudioStream -> WindowResources -> IO () Source #

Unloads a managed audio stream from RAM

setAudioStreamPan :: AudioStream -> Float -> IO () Source #

Native

c'setMasterVolume :: CFloat -> IO () Source #

c'loadWave :: CString -> IO (Ptr Wave) Source #

c'loadWaveFromMemory :: CString -> Ptr CUChar -> CInt -> IO (Ptr Wave) Source #

c'loadSound :: CString -> IO (Ptr Sound) Source #

c'updateSound :: Ptr Sound -> Ptr () -> CInt -> IO () Source #

c'isWaveReady :: Ptr Wave -> IO CBool Source #

c'exportWave :: Ptr Wave -> CString -> IO CBool Source #

c'exportWaveAsCode :: Ptr Wave -> CString -> IO CBool Source #

c'setSoundVolume :: Ptr Sound -> CFloat -> IO () Source #

c'setSoundPitch :: Ptr Sound -> CFloat -> IO () Source #

c'setSoundPan :: Ptr Sound -> CFloat -> IO () Source #

c'waveCrop :: Ptr Wave -> CInt -> CInt -> IO () Source #

c'waveFormat :: Ptr Wave -> CInt -> CInt -> CInt -> IO () Source #

c'loadWaveSamples :: Ptr Wave -> IO (Ptr CFloat) Source #

c'unloadWaveSamples :: Ptr CFloat -> IO () Source #

c'loadMusicStream :: CString -> IO (Ptr Music) Source #

c'loadMusicStreamFromMemory :: CString -> Ptr CUChar -> CInt -> IO (Ptr Music) Source #

c'seekMusicStream :: Ptr Music -> CFloat -> IO () Source #

c'setMusicVolume :: Ptr Music -> CFloat -> IO () Source #

c'setMusicPitch :: Ptr Music -> CFloat -> IO () Source #

c'setMusicPan :: Ptr Music -> CFloat -> IO () Source #

c'loadAudioStream :: CUInt -> CUInt -> CUInt -> IO (Ptr AudioStream) Source #

c'updateAudioStream :: Ptr AudioStream -> Ptr () -> CInt -> IO () Source #

Callbacks

mk'audioCallback :: (Ptr () -> CUInt -> IO ()) -> IO C'AudioCallback Source #