alsa-0.3: Binding to the ALSA Library API.Source codeContentsIndex
Sound.Alsa.Core
Contents
Marshalling utilities
Synopsis
newtype Pcm = Pcm (Ptr Pcm)
newtype PcmHwParams = PcmHwParams (Ptr PcmHwParams)
newtype PcmSwParams = PcmSwParams (Ptr PcmSwParams)
data PcmStream
= PcmStreamPlayback
| PcmStreamCapture
| PcmStreamLast
data PcmAccess
= PcmAccessMmapInterleaved
| PcmAccessMmapNoninterleaved
| PcmAccessMmapComplex
| PcmAccessRwInterleaved
| PcmAccessRwNoninterleaved
| PcmAccessLast
data PcmFormat
= PcmFormatUnknown
| PcmFormatS8
| PcmFormatU8
| PcmFormatS16Le
| PcmFormatS16Be
| PcmFormatU16Le
| PcmFormatU16Be
| PcmFormatS24Le
| PcmFormatS24Be
| PcmFormatU24Le
| PcmFormatU24Be
| PcmFormatS32Le
| PcmFormatS32Be
| PcmFormatU32Le
| PcmFormatU32Be
| PcmFormatFloatLe
| PcmFormatFloatBe
| PcmFormatFloat64Le
| PcmFormatFloat64Be
| PcmFormatIec958SubframeLe
| PcmFormatIec958SubframeBe
| PcmFormatMuLaw
| PcmFormatALaw
| PcmFormatImaAdpcm
| PcmFormatMpeg
| PcmFormatGsm
| PcmFormatSpecial
| PcmFormatS243le
| PcmFormatS243be
| PcmFormatU243le
| PcmFormatU243be
| PcmFormatS203le
| PcmFormatS203be
| PcmFormatU203le
| PcmFormatU203be
| PcmFormatS183le
| PcmFormatS183be
| PcmFormatU183le
| PcmFormatU183be
| PcmFormatLast
| PcmFormatS16
| PcmFormatU16
| PcmFormatS24
| PcmFormatU24
| PcmFormatS32
| PcmFormatU32
| PcmFormatFloat
| PcmFormatFloat64
| PcmFormatIec958Subframe
pcm_open :: String -> PcmStream -> Int -> IO Pcm
pcm_close :: Pcm -> IO ()
pcm_prepare :: Pcm -> IO ()
pcm_start :: Pcm -> IO ()
pcm_drop :: Pcm -> IO ()
pcm_drain :: Pcm -> IO ()
pcm_hw_params :: Pcm -> PcmHwParams -> IO ()
pcm_hw_params_any :: Pcm -> PcmHwParams -> IO ()
pcm_hw_params_set_access :: Pcm -> PcmHwParams -> PcmAccess -> IO ()
pcm_hw_params_set_format :: Pcm -> PcmHwParams -> PcmFormat -> IO ()
pcm_hw_params_set_rate :: Pcm -> PcmHwParams -> Int -> Ordering -> IO ()
pcm_hw_params_set_channels :: Pcm -> PcmHwParams -> Int -> IO ()
pcm_hw_params_set_buffer_size :: Pcm -> PcmHwParams -> Int -> IO ()
pcm_hw_params_get_buffer_size :: PcmHwParams -> IO Int
pcm_hw_params_get_period_size :: PcmHwParams -> IO (Int, Ordering)
pcm_hw_params_set_period_time_near :: Pcm -> PcmHwParams -> Int -> Ordering -> IO (Int, Ordering)
pcm_hw_params_set_periods :: Pcm -> PcmHwParams -> Int -> Ordering -> IO ()
pcm_hw_params_set_buffer_time_near :: Pcm -> PcmHwParams -> Int -> Ordering -> IO (Int, Ordering)
pcm_hw_params_get_buffer_time :: PcmHwParams -> IO (Int, Ordering)
pcm_sw_params_set_start_threshold :: Pcm -> PcmSwParams -> Int -> IO ()
pcm_sw_params_set_avail_min :: Pcm -> PcmSwParams -> Int -> IO ()
pcm_sw_params_set_xfer_align :: Pcm -> PcmSwParams -> Int -> IO ()
pcm_sw_params_set_silence_threshold :: Pcm -> PcmSwParams -> Int -> IO ()
pcm_sw_params_set_silence_size :: Pcm -> PcmSwParams -> Int -> IO ()
pcm_readi :: Pcm -> Ptr a -> Int -> IO Int
pcm_writei :: Pcm -> Ptr a -> Int -> IO Int
pcm_hw_params_malloc :: IO PcmHwParams
pcm_hw_params_free :: PcmHwParams -> IO ()
pcm_sw_params_malloc :: IO PcmSwParams
pcm_sw_params_free :: PcmSwParams -> IO ()
pcm_sw_params :: Pcm -> PcmSwParams -> IO ()
pcm_sw_params_current :: Pcm -> PcmSwParams -> IO ()
orderingToInt :: Ordering -> CInt
intToOrdering :: CInt -> Ordering
peekOrdering :: Ptr CInt -> IO Ordering
withOrdering :: Ordering -> (Ptr CInt -> IO a) -> IO a
pcm_open'_ :: Ptr Pcm -> Ptr CChar -> CInt -> CInt -> IO CInt
pcm_close'_ :: Pcm -> IO CInt
pcm_prepare'_ :: Pcm -> IO CInt
pcm_start'_ :: Pcm -> IO CInt
pcm_drop'_ :: Pcm -> IO CInt
pcm_drain'_ :: Pcm -> IO CInt
pcm_hw_params'_ :: Pcm -> PcmHwParams -> IO CInt
pcm_hw_params_any'_ :: Pcm -> PcmHwParams -> IO CInt
pcm_hw_params_set_access'_ :: Pcm -> PcmHwParams -> CInt -> IO CInt
pcm_hw_params_set_format'_ :: Pcm -> PcmHwParams -> CInt -> IO CInt
pcm_hw_params_set_rate'_ :: Pcm -> PcmHwParams -> CUInt -> CInt -> IO CInt
pcm_hw_params_set_channels'_ :: Pcm -> PcmHwParams -> CUInt -> IO CInt
pcm_hw_params_set_buffer_size'_ :: Pcm -> PcmHwParams -> CULong -> IO CInt
pcm_hw_params_get_buffer_size'_ :: PcmHwParams -> Ptr CULong -> IO CInt
pcm_hw_params_get_period_size'_ :: PcmHwParams -> Ptr CULong -> Ptr CInt -> IO CInt
pcm_hw_params_set_period_time_near'_ :: Pcm -> PcmHwParams -> Ptr CUInt -> Ptr CInt -> IO CInt
pcm_hw_params_set_periods'_ :: Pcm -> PcmHwParams -> CUInt -> CInt -> IO CInt
pcm_hw_params_set_buffer_time_near'_ :: Pcm -> PcmHwParams -> Ptr CUInt -> Ptr CInt -> IO CInt
pcm_hw_params_get_buffer_time'_ :: PcmHwParams -> Ptr CUInt -> Ptr CInt -> IO CInt
pcm_sw_params_set_start_threshold'_ :: Pcm -> PcmSwParams -> CULong -> IO CInt
pcm_sw_params_set_avail_min'_ :: Pcm -> PcmSwParams -> CULong -> IO CInt
pcm_sw_params_set_xfer_align'_ :: Pcm -> PcmSwParams -> CULong -> IO CInt
pcm_sw_params_set_silence_threshold'_ :: Pcm -> PcmSwParams -> CULong -> IO CInt
pcm_sw_params_set_silence_size'_ :: Pcm -> PcmSwParams -> CULong -> IO CInt
pcm_readi'_ :: Pcm -> Ptr () -> CULong -> IO CLong
pcm_writei'_ :: Pcm -> Ptr () -> CULong -> IO CLong
pcm_hw_params_malloc'_ :: Ptr PcmHwParams -> IO CInt
pcm_hw_params_free'_ :: PcmHwParams -> IO ()
pcm_sw_params_malloc'_ :: Ptr PcmSwParams -> IO CInt
pcm_sw_params_free'_ :: PcmSwParams -> IO ()
pcm_sw_params'_ :: Pcm -> PcmSwParams -> IO CInt
pcm_sw_params_current'_ :: Pcm -> PcmSwParams -> IO CInt
Documentation
newtype Pcm Source
Constructors
Pcm (Ptr Pcm)
show/hide Instances
newtype PcmHwParams Source
Constructors
PcmHwParams (Ptr PcmHwParams)
show/hide Instances
newtype PcmSwParams Source
Constructors
PcmSwParams (Ptr PcmSwParams)
show/hide Instances
data PcmStream Source
Constructors
PcmStreamPlayback
PcmStreamCapture
PcmStreamLast
show/hide Instances
data PcmAccess Source
Constructors
PcmAccessMmapInterleaved
PcmAccessMmapNoninterleaved
PcmAccessMmapComplex
PcmAccessRwInterleaved
PcmAccessRwNoninterleaved
PcmAccessLast
show/hide Instances
data PcmFormat Source
Constructors
PcmFormatUnknown
PcmFormatS8
PcmFormatU8
PcmFormatS16Le
PcmFormatS16Be
PcmFormatU16Le
PcmFormatU16Be
PcmFormatS24Le
PcmFormatS24Be
PcmFormatU24Le
PcmFormatU24Be
PcmFormatS32Le
PcmFormatS32Be
PcmFormatU32Le
PcmFormatU32Be
PcmFormatFloatLe
PcmFormatFloatBe
PcmFormatFloat64Le
PcmFormatFloat64Be
PcmFormatIec958SubframeLe
PcmFormatIec958SubframeBe
PcmFormatMuLaw
PcmFormatALaw
PcmFormatImaAdpcm
PcmFormatMpeg
PcmFormatGsm
PcmFormatSpecial
PcmFormatS243le
PcmFormatS243be
PcmFormatU243le
PcmFormatU243be
PcmFormatS203le
PcmFormatS203be
PcmFormatU203le
PcmFormatU203be
PcmFormatS183le
PcmFormatS183be
PcmFormatU183le
PcmFormatU183be
PcmFormatLast
PcmFormatS16
PcmFormatU16
PcmFormatS24
PcmFormatU24
PcmFormatS32
PcmFormatU32
PcmFormatFloat
PcmFormatFloat64
PcmFormatIec958Subframe
show/hide Instances
pcm_open :: String -> PcmStream -> Int -> IO PcmSource
pcm_close :: Pcm -> IO ()Source
pcm_prepare :: Pcm -> IO ()Source
pcm_start :: Pcm -> IO ()Source
pcm_drop :: Pcm -> IO ()Source
pcm_drain :: Pcm -> IO ()Source
pcm_hw_params :: Pcm -> PcmHwParams -> IO ()Source
pcm_hw_params_any :: Pcm -> PcmHwParams -> IO ()Source
pcm_hw_params_set_access :: Pcm -> PcmHwParams -> PcmAccess -> IO ()Source
pcm_hw_params_set_format :: Pcm -> PcmHwParams -> PcmFormat -> IO ()Source
pcm_hw_params_set_rate :: Pcm -> PcmHwParams -> Int -> Ordering -> IO ()Source
pcm_hw_params_set_channels :: Pcm -> PcmHwParams -> Int -> IO ()Source
pcm_hw_params_set_buffer_size :: Pcm -> PcmHwParams -> Int -> IO ()Source
pcm_hw_params_get_buffer_size :: PcmHwParams -> IO IntSource
pcm_hw_params_get_period_size :: PcmHwParams -> IO (Int, Ordering)Source
pcm_hw_params_set_period_time_near :: Pcm -> PcmHwParams -> Int -> Ordering -> IO (Int, Ordering)Source
pcm_hw_params_set_periods :: Pcm -> PcmHwParams -> Int -> Ordering -> IO ()Source
pcm_hw_params_set_buffer_time_near :: Pcm -> PcmHwParams -> Int -> Ordering -> IO (Int, Ordering)Source
pcm_hw_params_get_buffer_time :: PcmHwParams -> IO (Int, Ordering)Source
pcm_sw_params_set_start_threshold :: Pcm -> PcmSwParams -> Int -> IO ()Source
pcm_sw_params_set_avail_min :: Pcm -> PcmSwParams -> Int -> IO ()Source
pcm_sw_params_set_xfer_align :: Pcm -> PcmSwParams -> Int -> IO ()Source
pcm_sw_params_set_silence_threshold :: Pcm -> PcmSwParams -> Int -> IO ()Source
pcm_sw_params_set_silence_size :: Pcm -> PcmSwParams -> Int -> IO ()Source
pcm_readi :: Pcm -> Ptr a -> Int -> IO IntSource
pcm_writei :: Pcm -> Ptr a -> Int -> IO IntSource
pcm_hw_params_malloc :: IO PcmHwParamsSource
pcm_hw_params_free :: PcmHwParams -> IO ()Source
pcm_sw_params_malloc :: IO PcmSwParamsSource
pcm_sw_params_free :: PcmSwParams -> IO ()Source
pcm_sw_params :: Pcm -> PcmSwParams -> IO ()Source
pcm_sw_params_current :: Pcm -> PcmSwParams -> IO ()Source
Marshalling utilities
orderingToInt :: Ordering -> CIntSource
intToOrdering :: CInt -> OrderingSource
peekOrdering :: Ptr CInt -> IO OrderingSource
withOrdering :: Ordering -> (Ptr CInt -> IO a) -> IO aSource
pcm_open'_ :: Ptr Pcm -> Ptr CChar -> CInt -> CInt -> IO CIntSource
pcm_close'_ :: Pcm -> IO CIntSource
pcm_prepare'_ :: Pcm -> IO CIntSource
pcm_start'_ :: Pcm -> IO CIntSource
pcm_drop'_ :: Pcm -> IO CIntSource
pcm_drain'_ :: Pcm -> IO CIntSource
pcm_hw_params'_ :: Pcm -> PcmHwParams -> IO CIntSource
pcm_hw_params_any'_ :: Pcm -> PcmHwParams -> IO CIntSource
pcm_hw_params_set_access'_ :: Pcm -> PcmHwParams -> CInt -> IO CIntSource
pcm_hw_params_set_format'_ :: Pcm -> PcmHwParams -> CInt -> IO CIntSource
pcm_hw_params_set_rate'_ :: Pcm -> PcmHwParams -> CUInt -> CInt -> IO CIntSource
pcm_hw_params_set_channels'_ :: Pcm -> PcmHwParams -> CUInt -> IO CIntSource
pcm_hw_params_set_buffer_size'_ :: Pcm -> PcmHwParams -> CULong -> IO CIntSource
pcm_hw_params_get_buffer_size'_ :: PcmHwParams -> Ptr CULong -> IO CIntSource
pcm_hw_params_get_period_size'_ :: PcmHwParams -> Ptr CULong -> Ptr CInt -> IO CIntSource
pcm_hw_params_set_period_time_near'_ :: Pcm -> PcmHwParams -> Ptr CUInt -> Ptr CInt -> IO CIntSource
pcm_hw_params_set_periods'_ :: Pcm -> PcmHwParams -> CUInt -> CInt -> IO CIntSource
pcm_hw_params_set_buffer_time_near'_ :: Pcm -> PcmHwParams -> Ptr CUInt -> Ptr CInt -> IO CIntSource
pcm_hw_params_get_buffer_time'_ :: PcmHwParams -> Ptr CUInt -> Ptr CInt -> IO CIntSource
pcm_sw_params_set_start_threshold'_ :: Pcm -> PcmSwParams -> CULong -> IO CIntSource
pcm_sw_params_set_avail_min'_ :: Pcm -> PcmSwParams -> CULong -> IO CIntSource
pcm_sw_params_set_xfer_align'_ :: Pcm -> PcmSwParams -> CULong -> IO CIntSource
pcm_sw_params_set_silence_threshold'_ :: Pcm -> PcmSwParams -> CULong -> IO CIntSource
pcm_sw_params_set_silence_size'_ :: Pcm -> PcmSwParams -> CULong -> IO CIntSource
pcm_readi'_ :: Pcm -> Ptr () -> CULong -> IO CLongSource
pcm_writei'_ :: Pcm -> Ptr () -> CULong -> IO CLongSource
pcm_hw_params_malloc'_ :: Ptr PcmHwParams -> IO CIntSource
pcm_hw_params_free'_ :: PcmHwParams -> IO ()Source
pcm_sw_params_malloc'_ :: Ptr PcmSwParams -> IO CIntSource
pcm_sw_params_free'_ :: PcmSwParams -> IO ()Source
pcm_sw_params'_ :: Pcm -> PcmSwParams -> IO CIntSource
pcm_sw_params_current'_ :: Pcm -> PcmSwParams -> IO CIntSource
Produced by Haddock version 2.4.2