Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{AudioUnitInstance.cpp}::AudioUnitMessage Struct Reference
Inheritance diagram for anonymous_namespace{AudioUnitInstance.cpp}::AudioUnitMessage:
[legend]
Collaboration diagram for anonymous_namespace{AudioUnitInstance.cpp}::AudioUnitMessage:
[legend]

Public Member Functions

 AudioUnitMessage (AudioUnitEffectSettings settings)
 
 ~AudioUnitMessage () override
 
std::unique_ptr< Message > Clone () const override
 
void Assign (Message &&src) override
 
void Merge (Message &&src) override
 
- Public Member Functions inherited from EffectSettingsAccess::Message
virtual ~Message ()
 
virtual std::unique_ptr< MessageClone () const =0
 
virtual void Assign (Message &&src)=0
 Update one Message object from another, which is then left "empty". More...
 
virtual void Merge (Message &&src)=0
 Combine one Message object with another, which is then left "empty". More...
 

Public Attributes

AudioUnitEffectSettings settings
 

Detailed Description

Definition at line 22 of file AudioUnitInstance.cpp.

Constructor & Destructor Documentation

◆ AudioUnitMessage()

anonymous_namespace{AudioUnitInstance.cpp}::AudioUnitMessage::AudioUnitMessage ( AudioUnitEffectSettings  settings)
inlineexplicit

Definition at line 23 of file AudioUnitInstance.cpp.

◆ ~AudioUnitMessage()

AudioUnitMessage::~AudioUnitMessage ( )
overridedefault

Member Function Documentation

◆ Assign()

void AudioUnitMessage::Assign ( Message &&  src)
override

Definition at line 42 of file AudioUnitInstance.cpp.

43{
44 auto &dstSettings = this->settings;
45 auto &srcSettings = static_cast<AudioUnitMessage&>(src).settings;
47 std::move(srcSettings), dstSettings, false);
48}
static bool MoveSettingsContents(AudioUnitEffectSettings &&src, AudioUnitEffectSettings &dst, bool merge)
Copy, then clear the optionals in src.

References AudioUnitWrapper::MoveSettingsContents(), and settings().

Here is the call graph for this function:

◆ Clone()

auto AudioUnitMessage::Clone ( ) const
overridevirtual

Implements EffectSettingsAccess::Message.

Definition at line 37 of file AudioUnitInstance.cpp.

38{
39 return std::make_unique<AudioUnitMessage>(*this);
40}

◆ Merge()

void AudioUnitMessage::Merge ( Message &&  src)
override

Definition at line 50 of file AudioUnitInstance.cpp.

51{
52 auto &dstSettings = this->settings;
53 auto &srcSettings = static_cast<AudioUnitMessage&>(src).settings;
55 std::move(srcSettings), dstSettings, true);
56}

References AudioUnitWrapper::MoveSettingsContents(), and settings().

Here is the call graph for this function:

Member Data Documentation

◆ settings

AudioUnitEffectSettings anonymous_namespace{AudioUnitInstance.cpp}::AudioUnitMessage::settings

Definition at line 31 of file AudioUnitInstance.cpp.


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