Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype AudioQuantize = AudioQuantize (ManagedPtr AudioQuantize)
- noAudioQuantize :: Maybe AudioQuantize
- audioQuantizeFree :: (HasCallStack, MonadIO m) => AudioQuantize -> m ()
- audioQuantizeReset :: (HasCallStack, MonadIO m) => AudioQuantize -> m ()
- audioQuantizeSamples :: (HasCallStack, MonadIO m) => AudioQuantize -> Ptr () -> Ptr () -> Word32 -> m ()
Exported types
newtype AudioQuantize Source #
Memory-managed wrapper type.
AudioQuantize (ManagedPtr AudioQuantize) |
Instances
WrappedPtr AudioQuantize Source # | |
Defined in GI.GstAudio.Structs.AudioQuantize wrappedPtrCalloc :: IO (Ptr AudioQuantize) wrappedPtrCopy :: AudioQuantize -> IO AudioQuantize wrappedPtrFree :: Maybe (GDestroyNotify AudioQuantize) |
noAudioQuantize :: Maybe AudioQuantize Source #
A convenience alias for Nothing
:: Maybe
AudioQuantize
.
Methods
free
:: (HasCallStack, MonadIO m) | |
=> AudioQuantize |
|
-> m () |
Free a AudioQuantize
.
reset
:: (HasCallStack, MonadIO m) | |
=> AudioQuantize |
|
-> m () |
Reset quant
to the state is was when created, clearing any
history it might have.
samples
:: (HasCallStack, MonadIO m) | |
=> AudioQuantize |
|
-> Ptr () |
|
-> Ptr () |
|
-> Word32 |
|
-> m () |
Perform quantization on samples
in in
and write the result to out
.
In case the samples are interleaved, in
and out
must point to an
array with a single element pointing to a block of interleaved samples.
If non-interleaved samples are used, in
and out
must point to an
array with pointers to memory blocks, one for each channel.
in
and out
may point to the same memory location, in which case samples will be
modified in-place.