Safe Haskell | Safe-Inferred |
---|
Binding to libsamplerate.
Synopsis
- data State
- data Quality
- new :: Quality -> Channels -> IO State
- delete :: State -> IO ()
- setRatio :: State -> Double -> IO ()
- data Input = Input {}
- data Output = Output {}
- process :: State -> Input -> IO Output
- newtype Exception = Exception Text
- data SavedState = SavedState !ByteString.ByteString !ByteString.ByteString
- unsafeGetState :: State -> IO SavedState
- putState :: Quality -> State -> SavedState -> IO Bool
- getRatio :: State -> IO Double
Documentation
Instances
Bounded Quality Source # | |
Enum Quality Source # | |
Show Quality Source # | |
Eq Quality Source # | |
This corresponds to the input part of SRC_DATA.
This corresponds to the output part of SRC_DATA.
SavedState
data SavedState Source #
Instances
Show SavedState Source # | |
Defined in Util.Audio.SampleRateC showsPrec :: Int -> SavedState -> ShowS # show :: SavedState -> String # showList :: [SavedState] -> ShowS # | |
Eq SavedState Source # | |
Defined in Util.Audio.SampleRateC (==) :: SavedState -> SavedState -> Bool # (/=) :: SavedState -> SavedState -> Bool # | |
Pretty SavedState Source # | |
Defined in Util.Audio.Resample pretty :: SavedState -> Text Source # format :: SavedState -> Doc Source # formatList :: [SavedState] -> Doc Source # | |
Serialize SavedState Source # | |
Defined in Util.Audio.Resample put :: Putter SavedState Source # get :: Get SavedState Source # |
unsafeGetState :: State -> IO SavedState Source #
The second ByteString in SavedState is done without copying, so use it before doing anything with State!
This is only in my fork of libsamplerate, referenced in default.nix.