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

Safe HaskellSafe
LanguageHaskell2010

Sound.ALSA.PCM

Synopsis

Documentation

type Time = Int Source #

type Size = Int Source #

data SoundFmt y Source #

Constructors

SoundFmt 

Instances

data SoundSource handle y Source #

Counts are in samples, not bytes. Multi-channel data is interleaved.

Constructors

SoundSource 

Fields

data SoundSink handle y Source #

Constructors

SoundSink 

Fields

withSoundSource :: SoundSource handle y -> (handle y -> IO a) -> IO a Source #

withSoundSourceRunning :: SoundSource handle y -> handle y -> IO a -> IO a Source #

withSoundSink :: SoundSink handle y -> (handle y -> IO a) -> IO a Source #

withSoundSinkRunning :: SoundSink handle y -> handle y -> IO a -> IO a Source #

copySound Source #

Arguments

:: SampleFmt y 
=> SoundSource handleIn y 
-> SoundSink handleOut y 
-> Size

Buffer size (in sample frames) to use

-> IO ()