| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.GstAudio.Structs.AudioChannelMixer
Description
No description available in the introspection data.
Synopsis
- newtype AudioChannelMixer = AudioChannelMixer (ManagedPtr AudioChannelMixer)
- audioChannelMixerFree :: (HasCallStack, MonadIO m) => AudioChannelMixer -> m ()
- audioChannelMixerIsPassthrough :: (HasCallStack, MonadIO m) => AudioChannelMixer -> m Bool
- audioChannelMixerSamples :: (HasCallStack, MonadIO m) => AudioChannelMixer -> Ptr () -> Ptr () -> Int32 -> m ()
Exported types
newtype AudioChannelMixer Source #
Memory-managed wrapper type.
Constructors
| AudioChannelMixer (ManagedPtr AudioChannelMixer) |
Instances
| Eq AudioChannelMixer Source # | |
Defined in GI.GstAudio.Structs.AudioChannelMixer Methods (==) :: AudioChannelMixer -> AudioChannelMixer -> Bool # (/=) :: AudioChannelMixer -> AudioChannelMixer -> Bool # | |
| BoxedPtr AudioChannelMixer Source # | |
Defined in GI.GstAudio.Structs.AudioChannelMixer Methods boxedPtrCopy :: AudioChannelMixer -> IO AudioChannelMixer boxedPtrFree :: AudioChannelMixer -> IO () | |
| ManagedPtrNewtype AudioChannelMixer Source # | |
Defined in GI.GstAudio.Structs.AudioChannelMixer Methods toManagedPtr :: AudioChannelMixer -> ManagedPtr AudioChannelMixer | |
Methods
Click to display all available methods, including inherited ones
free
audioChannelMixerFree Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => AudioChannelMixer |
|
| -> m () |
Free memory allocated by mix.
isPassthrough
audioChannelMixerIsPassthrough Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => AudioChannelMixer |
|
| -> m Bool | Returns: |
Check if mix is in passthrough.
Only N x N mix identity matrices are considered passthrough, this is determined by comparing the contents of the matrix with 0.0 and 1.0.
As this is floating point comparisons, if the values have been generated, they should be rounded up or down by explicit assignment of 0.0 or 1.0 to values within a user-defined epsilon, this code doesn't make assumptions as to what may constitute an appropriate epsilon.
samples
audioChannelMixerSamples Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => AudioChannelMixer |
|
| -> Ptr () |
|
| -> Ptr () |
|
| -> Int32 |
|
| -> m () |
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.
Perform channel mixing on inData and write the result to outData.
inData and outData need to be in format and layout.