conduit-audio-sndfile-0.1.2.1: conduit-audio interface to the libsndfile audio file library

Safe HaskellNone
LanguageHaskell2010

Data.Conduit.Audio.Sndfile

Synopsis

Documentation

sourceSnd :: (MonadResource m, Sample a) => FilePath -> IO (AudioSource m a) Source #

Uses libsndfile to load an audio file as a stream.

sourceSndFrom Source #

Arguments

:: (MonadResource m, Sample a) 
=> Duration

Initial position to seek to in the file (more efficient than using dropStart)

-> FilePath 
-> IO (AudioSource m a) 

Lets you specify a position to start from in the file.

sourceSndWithHandle Source #

Arguments

:: (MonadResource m, Sample a) 
=> FilePath 
-> (Handle -> m ())

Perform any setup necessary with the libsndfile handle

-> IO (AudioSource m a) 

Lets you perform arbitrary setup on the libsndfile handle before decoding.

sinkSnd :: (MonadResource m, Sample a) => FilePath -> Format -> AudioSource m a -> m () Source #

Uses libsndfile to write an audio stream to a file.

sinkSndWithHandle :: (MonadResource m, Sample a) => FilePath -> Format -> (Handle -> m ()) -> AudioSource m a -> m () Source #

Lets you perform arbitrary setup on the libsndfile handle before encoding.