alsa-pcm-0.6.0.3: Binding to the ALSA Library API (PCM audio).

Safe HaskellSafe-Inferred

Sound.ALSA.PCM.Parameters.Hardware

Contents

Synopsis

Types

data T i y a Source

Instances

Monad (T i y) 
Functor (T i y) 
Applicative (T i y) 

Primitive accessors to hardware parameters

setChannels :: Word -> T Noninterleaved y ()Source

For non-interleaved access the number of channels must be set manually. It can be chosen at runtime, but the compiler cannot check whether the number of allocated channels matches the one in readn and writen.

In interleaved access the number of channels is derived from the type and must not be set manually. The number is static but the compiler checks consistency with readi and writei.

Complex hardware parameter configuration

setRateBufferTimeSource

Arguments

:: SampleFreq

sample frequency

-> Time

buffer time

-> Time

period time

-> T Interleaved y (Size, Size)

(bufferSize,periodSize)