Safe Haskell | None |
---|---|
Language | Haskell2010 |
- sourceSnd :: (MonadResource m, Sample a) => FilePath -> IO (AudioSource m a)
- sourceSndFrom :: (MonadResource m, Sample a) => Duration -> FilePath -> IO (AudioSource m a)
- sinkSnd :: (MonadResource m, Sample a) => FilePath -> Format -> AudioSource m a -> m ()
Documentation
sourceSnd :: (MonadResource m, Sample a) => FilePath -> IO (AudioSource m a) Source
Uses libsndfile
to load an audio file as a stream.
:: (MonadResource m, Sample a) | |
=> Duration | Initial position to seek to in the file (more efficient than using |
-> FilePath | |
-> IO (AudioSource m a) |
sinkSnd :: (MonadResource m, Sample a) => FilePath -> Format -> AudioSource m a -> m () Source
Uses libsndfile
to write an audio stream to a file.