conduit-audio-samplerate-0.1.0.1: conduit-audio interface to the libsamplerate resampling library

Safe HaskellSafe
LanguageHaskell2010

Data.Conduit.Audio.SampleRate.Binding

Description

A binding to the full API of libsamplerate. Errors are turned into Haskell exceptions of type SRCError. The SRC_DATA struct is split into two Haskell types for the input (DataIn) and output (DataOut) parts.

Synopsis

Documentation

new Source

Arguments

:: ConverterType 
-> Int

channels

-> IO State 

reset :: State -> IO () Source

data SRCError Source

libsamplerate functions may throw this as an exception. Contains the function that caused the error, the numeric error code, and a human-readable message.

Constructors

SRCError String Int String