sdl2-2.5.5.1: Both high- and low-level bindings to the SDL library (version 2.0.6+).

Safe Haskell | Safe-Inferred
Language | Haskell2010

SDL.Raw.Audio

Contents

- Audio Device Management, Playing and Recording

Synopsis

- audioInit :: MonadIO m => CString -> m CInt
- audioQuit :: MonadIO m => m ()
- buildAudioCVT :: MonadIO m => Ptr AudioCVT -> AudioFormat -> Word8 -> CInt -> AudioFormat -> Word8 -> CInt -> m CInt
- clearQueuedAudio :: MonadIO m => AudioDeviceID -> m ()
- closeAudio :: MonadIO m => m ()
- closeAudioDevice :: MonadIO m => AudioDeviceID -> m ()
- convertAudio :: MonadIO m => Ptr AudioCVT -> m CInt
- freeWAV :: MonadIO m => Ptr Word8 -> m ()
- getAudioDeviceName :: MonadIO m => CInt -> CInt -> m CString
- getAudioDeviceStatus :: MonadIO m => AudioDeviceID -> m AudioStatus
- getAudioDriver :: MonadIO m => CInt -> m CString
- getAudioStatus :: MonadIO m => m AudioStatus
- getCurrentAudioDriver :: MonadIO m => m CString
- getNumAudioDevices :: MonadIO m => CInt -> m CInt
- getNumAudioDrivers :: MonadIO m => m CInt
- getQueuedAudioSize :: MonadIO m => AudioDeviceID -> m Word32
- loadWAV :: MonadIO m => CString -> Ptr AudioSpec -> Ptr (Ptr Word8) -> Ptr Word32 -> m (Ptr AudioSpec)
- loadWAV_RW :: MonadIO m => Ptr RWops -> CInt -> Ptr AudioSpec -> Ptr (Ptr Word8) -> Ptr Word32 -> m (Ptr AudioSpec)
- lockAudio :: MonadIO m => m ()
- lockAudioDevice :: MonadIO m => AudioDeviceID -> m ()
- mixAudio :: MonadIO m => Ptr Word8 -> Ptr Word8 -> Word32 -> CInt -> m ()
- mixAudioFormat :: MonadIO m => Ptr Word8 -> Ptr Word8 -> AudioFormat -> Word32 -> CInt -> m ()
- openAudio :: MonadIO m => Ptr AudioSpec -> Ptr AudioSpec -> m CInt
- openAudioDevice :: MonadIO m => CString -> CInt -> Ptr AudioSpec -> Ptr AudioSpec -> CInt -> m AudioDeviceID
- pauseAudio :: MonadIO m => CInt -> m ()
- pauseAudioDevice :: MonadIO m => AudioDeviceID -> CInt -> m ()
- queueAudio :: MonadIO m => AudioDeviceID -> Ptr () -> Word32 -> m CInt
- unlockAudio :: MonadIO m => m ()
- unlockAudioDevice :: MonadIO m => AudioDeviceID -> m ()

# Audio Device Management, Playing and Recording

audioInit :: MonadIO m => CString -> m CInt Source #

audioQuit :: MonadIO m => m () Source #

buildAudioCVT :: MonadIO m => Ptr AudioCVT -> AudioFormat -> Word8 -> CInt -> AudioFormat -> Word8 -> CInt -> m CInt Source #

clearQueuedAudio :: MonadIO m => AudioDeviceID -> m () Source #

closeAudio :: MonadIO m => m () Source #

closeAudioDevice :: MonadIO m => AudioDeviceID -> m () Source #

convertAudio :: MonadIO m => Ptr AudioCVT -> m CInt Source #

freeWAV :: MonadIO m => Ptr Word8 -> m () Source #

getAudioDeviceName :: MonadIO m => CInt -> CInt -> m CString Source #

getAudioDeviceStatus :: MonadIO m => AudioDeviceID -> m AudioStatus Source #

getAudioDriver :: MonadIO m => CInt -> m CString Source #

getAudioStatus :: MonadIO m => m AudioStatus Source #

getCurrentAudioDriver :: MonadIO m => m CString Source #

getNumAudioDevices :: MonadIO m => CInt -> m CInt Source #

getNumAudioDrivers :: MonadIO m => m CInt Source #

getQueuedAudioSize :: MonadIO m => AudioDeviceID -> m Word32 Source #

loadWAV :: MonadIO m => CString -> Ptr AudioSpec -> Ptr (Ptr Word8) -> Ptr Word32 -> m (Ptr AudioSpec) Source #

loadWAV_RW :: MonadIO m => Ptr RWops -> CInt -> Ptr AudioSpec -> Ptr (Ptr Word8) -> Ptr Word32 -> m (Ptr AudioSpec) Source #

lockAudio :: MonadIO m => m () Source #

lockAudioDevice :: MonadIO m => AudioDeviceID -> m () Source #

mixAudio :: MonadIO m => Ptr Word8 -> Ptr Word8 -> Word32 -> CInt -> m () Source #

mixAudioFormat :: MonadIO m => Ptr Word8 -> Ptr Word8 -> AudioFormat -> Word32 -> CInt -> m () Source #

openAudio :: MonadIO m => Ptr AudioSpec -> Ptr AudioSpec -> m CInt Source #

openAudioDevice :: MonadIO m => CString -> CInt -> Ptr AudioSpec -> Ptr AudioSpec -> CInt -> m AudioDeviceID Source #

pauseAudio :: MonadIO m => CInt -> m () Source #

pauseAudioDevice :: MonadIO m => AudioDeviceID -> CInt -> m () Source #

queueAudio :: MonadIO m => AudioDeviceID -> Ptr () -> Word32 -> m CInt Source #

unlockAudio :: MonadIO m => m () Source #

unlockAudioDevice :: MonadIO m => AudioDeviceID -> m () Source #