JUCE  v5.1.1-3-g1a0b28c73
JUCE API
CoreAudioLayouts Struct Reference

#include <juce_mac_CoreAudioLayouts.h>

Classes

struct  LayoutTagSpeakerList
 
struct  SpeakerLayoutTable
 

Static Public Member Functions

static AudioChannelSet fromCoreAudio (const AudioChannelLayout &layout)
 Convert CoreAudio's native AudioChannelLayout to JUCE's AudioChannelSet. More...
 
static Array< AudioChannelSet::ChannelTypegetCoreAudioLayoutChannels (const AudioChannelLayout &layout)
 Convert CoreAudio's native AudioChannelLayout to an array of JUCE ChannelTypes. More...
 
static const Array< AudioChannelLayoutTag > & getKnownCoreAudioTags ()
 
static AudioChannelLayoutTag toCoreAudio (const AudioChannelSet &set)
 Convert JUCE's AudioChannelSet to CoreAudio's AudioChannelLayoutTag. More...
 

Static Private Member Functions

static Array< AudioChannelLayoutTag > createKnownCoreAudioTags ()
 
static AudioChannelSet::ChannelType getChannelTypeFromAudioChannelLabel (AudioChannelLabel label) noexcept
 
static Array< AudioChannelSet::ChannelTypegetSpeakerLayoutForCoreAudioTag (AudioChannelLayoutTag tag)
 

Member Function Documentation

◆ createKnownCoreAudioTags()

◆ fromCoreAudio()

static AudioChannelSet CoreAudioLayouts::fromCoreAudio ( const AudioChannelLayout &  layout)
inlinestatic

Convert CoreAudio's native AudioChannelLayout to JUCE's AudioChannelSet.

Note that this method cannot preserve the order of channels.

References AudioChannelSet::channelSetWithChannels(), and getCoreAudioLayoutChannels().

◆ getChannelTypeFromAudioChannelLabel()

◆ getCoreAudioLayoutChannels()

◆ getKnownCoreAudioTags()

static const Array<AudioChannelLayoutTag>& CoreAudioLayouts::getKnownCoreAudioTags ( )
inlinestatic

◆ getSpeakerLayoutForCoreAudioTag()

◆ toCoreAudio()

static AudioChannelLayoutTag CoreAudioLayouts::toCoreAudio ( const AudioChannelSet set)
inlinestatic

Convert JUCE's AudioChannelSet to CoreAudio's AudioChannelLayoutTag.

Note that this method cannot preserve the order of channels.

References AudioChannelSet::addChannel(), CoreAudioLayouts::SpeakerLayoutTable::get(), numElementsInArray(), CoreAudioLayouts::LayoutTagSpeakerList::tag, and AudioChannelSet::unknown.

Referenced by AudioUnitHelpers::ChannelRemapper::fillLayoutChannelMaps().


The documentation for this struct was generated from the following file: