Safe Haskell | Safe-Inferred |
---|
Wrapper around PortAudio. This only supports output.
Synopsis
- initialize :: IO a -> IO a
- play :: forall rate chan. (KnownNat rate, KnownNat chan) => IO Bool -> Device -> Audio.AudioIO rate chan -> Resource.ResourceT IO ()
- data Device = Device {}
- getDefaultOutput :: IO Device
- getOutputDevices :: IO [Device]
- data Error
- = NotInitialized
- | UnanticipatedHostError
- | InvalidChannelCount
- | InvalidSampleRate
- | InvalidDevice
- | InvalidFlag
- | SampleFormatNotSupported
- | BadIODeviceCombination
- | InsufficientMemory
- | BufferTooBig
- | BufferTooSmall
- | NullCallback
- | BadStreamPtr
- | TimedOut
- | InternalError
- | DeviceUnavailable
- | IncompatibleHostApiSpecificStreamInfo
- | StreamIsStopped
- | StreamIsNotStopped
- | InputOverflowed
- | OutputUnderflowed
- | HostApiNotFound
- | InvalidHostApi
- | CanNotReadFromACallbackStream
- | CanNotWriteToACallbackStream
- | CanNotReadFromAnOutputOnlyStream
- | CanNotWriteToAnInputOnlyStream
- | IncompatibleStreamHostApi
- | BadBufferPtr
Documentation
initialize :: IO a -> IO a Source #
play :: forall rate chan. (KnownNat rate, KnownNat chan) => IO Bool -> Device -> Audio.AudioIO rate chan -> Resource.ResourceT IO () Source #
Device
getOutputDevices :: IO [Device] Source #