module Sound.ALSA.PCM.Parameters.Software (
SwParams.T, Size,
TimestampMode, timestampNone, timestampMmap,
getAvailMin, setAvailMin,
getSilenceSize, setSilenceSize,
getSilenceThreshold, setSilenceThreshold,
getSleepMin, setSleepMin,
getStartThreshold, setStartThreshold,
getStopThreshold, setStopThreshold,
getTimestampMode, setTimestampMode,
getXferAlign, setXferAlign,
setBufferSize,
) where
import Sound.ALSA.PCM.Core.SwParams as SwParams
import Sound.ALSA.PCM.Core.Handle (Size, )
setBufferSize ::
Size
-> Size
-> SwParams.T i y ()
setBufferSize _bufferSize periodSize = do
setStartThreshold 0
setAvailMin $ fromIntegral periodSize
setXferAlign 1