OpenShot Audio Library | OpenShotAudio 0.4.0
|
#include <juce_AudioDataConverters.h>
Classes | |
class | BigEndian |
class | Converter |
class | ConverterInstance |
struct | Format |
class | Int24in32 |
class | Pointer |
Public Types | |
template<typename... Format> | |
using | InterleavedSource = ChannelData<true, true, Format...> |
template<typename... Format> | |
using | InterleavedDest = ChannelData<true, false, Format...> |
template<typename... Format> | |
using | NonInterleavedSource = ChannelData<false, true, Format...> |
template<typename... Format> | |
using | NonInterleavedDest = ChannelData<false, false, Format...> |
Static Public Member Functions | |
template<typename... SourceFormat, typename... DestFormat> | |
static void | interleaveSamples (NonInterleavedSource< SourceFormat... > source, InterleavedDest< DestFormat... > dest, int numSamples) |
template<typename... SourceFormat, typename... DestFormat> | |
static void | deinterleaveSamples (InterleavedSource< SourceFormat... > source, NonInterleavedDest< DestFormat... > dest, int numSamples) |
This class a container which holds all the classes pertaining to the AudioData::Pointer audio sample format class.
Definition at line 35 of file juce_AudioDataConverters.h.
struct juce::AudioData::Format |
A struct that contains a SampleFormat and Endianness to be used with the source and destination types when calling the interleaveSamples() and deinterleaveSamples() helpers.
Definition at line 653 of file juce_AudioDataConverters.h.
Class Members | ||
---|---|---|
typedef DataFormatIn | DataFormat DataFormatIn | |
typedef EndiannessIn | Endianness EndiannessIn |
using juce::AudioData::InterleavedDest = ChannelData<true, false, Format...> |
A sequence of interleaved samples used as the destination for the interleaveSamples() method.
Definition at line 699 of file juce_AudioDataConverters.h.
using juce::AudioData::InterleavedSource = ChannelData<true, true, Format...> |
A sequence of interleaved samples used as the source for the deinterleaveSamples() method.
Definition at line 697 of file juce_AudioDataConverters.h.
using juce::AudioData::NonInterleavedDest = ChannelData<false, false, Format...> |
A sequence of non-interleaved samples used as the destination for the deinterleaveSamples() method.
Definition at line 703 of file juce_AudioDataConverters.h.
using juce::AudioData::NonInterleavedSource = ChannelData<false, true, Format...> |
A sequence of non-interleaved samples used as the source for the interleaveSamples() method.
Definition at line 701 of file juce_AudioDataConverters.h.
|
inlinestatic |
A helper function for converting a sequence of samples from an interleaved source to a non-interleaved destination.
When calling this method you need to specify the source and destination data format and endianness from the AudioData SampleFormat and Endianness types and provide the data and number of channels for each. For example, to convert a floating-point stream of big endian samples to an non-interleaved, native endian stream of 16-bit integer samples you would do the following:
Definition at line 767 of file juce_AudioDataConverters.h.
|
inlinestatic |
A helper function for converting a sequence of samples from a non-interleaved source to an interleaved destination.
When calling this method you need to specify the source and destination data format and endianness from the AudioData SampleFormat and Endianness types and provide the data and number of channels for each. For example, to convert a floating-point stream of big endian samples to an interleaved, native endian stream of 16-bit integer samples you would do the following:
Definition at line 723 of file juce_AudioDataConverters.h.