Safe Haskell | Safe-Inferred |
---|
Util.Audio.SampleRateC
Contents
Description
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
Constructors
SincBestQuality | |
SincMediumQuality | |
SincFastest | |
ZeroOrderHold | |
Linear |
Instances
Bounded Quality Source # | |
Enum Quality Source # | |
Show Quality Source # | |
Eq Quality Source # | |
This corresponds to the input part of SRC_DATA.
Constructors
Input | |
Fields |
This corresponds to the output part of SRC_DATA.
Constructors
Output | |
Fields |
Instances
Exception.Exception Exception Source # | |
Defined in Util.Audio.SampleRateC Methods toException :: Exception -> Exception.SomeException # fromException :: Exception.SomeException -> Maybe Exception # displayException :: Exception -> String # | |
Show Exception Source # | |
Eq Exception Source # | |
SavedState
data SavedState Source #
Constructors
SavedState !ByteString.ByteString !ByteString.ByteString |
Instances
Show SavedState Source # | |
Defined in Util.Audio.SampleRateC Methods showsPrec :: Int -> SavedState -> ShowS # show :: SavedState -> String # showList :: [SavedState] -> ShowS # | |
Eq SavedState Source # | |
Defined in Util.Audio.SampleRateC | |
Pretty SavedState Source # | |
Defined in Util.Audio.Resample Methods pretty :: SavedState -> Text Source # format :: SavedState -> Doc Source # formatList :: [SavedState] -> Doc Source # | |
Serialize SavedState Source # | |
Defined in Util.Audio.Resample |
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.