h-raylib-5.1.3.0: Raylib bindings for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Raylib.Core.Audio

Description

Bindings to raudio

Synopsis

High level

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

Unloads a sound alias from RAM

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

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.

waveFormat :: Wave -> Int -> Int -> Int -> IO () 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.

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.

Native

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

Callbacks