bindings-portaudio-0.2: Low-level bindings to portaudio library

Safe HaskellNone
LanguageHaskell2010

System.PortAudio

Contents

Synopsis

Initialization

data Error Source #

Devices

data Device t Source #

Instances

Eq (Device t) Source # 

Methods

(==) :: Device t -> Device t -> Bool #

(/=) :: Device t -> Device t -> Bool #

Ord (Device t) Source # 

Methods

compare :: Device t -> Device t -> Ordering #

(<) :: Device t -> Device t -> Bool #

(<=) :: Device t -> Device t -> Bool #

(>) :: Device t -> Device t -> Bool #

(>=) :: Device t -> Device t -> Bool #

max :: Device t -> Device t -> Device t #

min :: Device t -> Device t -> Device t #

Show (Device t) Source # 

Methods

showsPrec :: Int -> Device t -> ShowS #

show :: Device t -> String #

showList :: [Device t] -> ShowS #

Opening a stream

withStream Source #

Arguments

:: (Storable i, Storable o) 
=> Double

sampling rate

-> Int

buffer size

-> Maybe (StreamParameters Input i) 
-> Maybe (StreamParameters Output o) 
-> StreamFlags 
-> (Status -> Vector i -> IOVector o -> IO StreamCallbackResult)

callback

-> IO r 
-> IO r 

data StreamCallbackResult Source #

Constructors

Continue 
Complete 
Abort 

Instances

Enum StreamCallbackResult Source # 
Eq StreamCallbackResult Source # 
Ord StreamCallbackResult Source # 
Show StreamCallbackResult Source # 
Monoid StreamCallbackResult Source # 

Stream parameters

class PortAudioSample a Source #

Minimal complete definition

paSampleFormat

data Closed Source #

Constructors

Closed 

noConnection :: Maybe (StreamParameters t Closed) Source #

This is Nothing, but it explicitly specifies the stream type with zero-width unit type.

Timestamps and status flags

Stream flags