Audacity 3.2.0
Functions
anonymous_namespace{AudioUnitEffectsModule.cpp} Namespace Reference

Functions

wxString FromOSType (OSType type)
 
OSType ToOSType (const wxString &type)
 
AudioComponent FindAudioUnit (const PluginPath &path, wxString &name)
 

Function Documentation

◆ FindAudioUnit()

AudioComponent anonymous_namespace{AudioUnitEffectsModule.cpp}::FindAudioUnit ( const PluginPath path,
wxString &  name 
)

Definition at line 98 of file AudioUnitEffectsModule.cpp.

100{
101 wxStringTokenizer tokens(path, wxT("/"));
102
103 AudioComponentDescription desc;
104
105 desc.componentManufacturer = ToOSType(tokens.GetNextToken());
106 desc.componentType = ToOSType(tokens.GetNextToken());
107 desc.componentSubType = ToOSType(tokens.GetNextToken());
108 desc.componentFlags = 0;
109 desc.componentFlagsMask = 0;
110
111 name = tokens.GetNextToken();
112 return AudioComponentFindNext(NULL, &desc);
113}
wxT("CloseDown"))
const TranslatableString name
Definition: Distortion.cpp:74
const TranslatableString desc
Definition: ExportPCM.cpp:55

References desc, name, ToOSType(), and wxT().

Referenced by AudioUnitEffectsModule::CheckPluginExist(), AudioUnitEffectsModule::DiscoverPluginsAtPath(), and AudioUnitEffectsModule::LoadPlugin().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromOSType()

wxString anonymous_namespace{AudioUnitEffectsModule.cpp}::FromOSType ( OSType  type)

Definition at line 76 of file AudioUnitEffectsModule.cpp.

77{
78 OSType rev = (type & 0xff000000) >> 24 |
79 (type & 0x00ff0000) >> 8 |
80 (type & 0x0000ff00) << 8 |
81 (type & 0x000000ff) << 24;
82
83 return wxString::FromUTF8(reinterpret_cast<char *>(&rev), 4);
84}

Referenced by AudioUnitEffectsModule::LoadAudioUnitsOfType().

Here is the caller graph for this function:

◆ ToOSType()

OSType anonymous_namespace{AudioUnitEffectsModule.cpp}::ToOSType ( const wxString &  type)

Definition at line 86 of file AudioUnitEffectsModule.cpp.

87{
88 wxCharBuffer buf = type.ToUTF8();
89
90 OSType rev = ((unsigned char)buf.data()[0]) << 24 |
91 ((unsigned char)buf.data()[1]) << 16 |
92 ((unsigned char)buf.data()[2]) << 8 |
93 ((unsigned char)buf.data()[3]);
94
95 return rev;
96}

Referenced by FindAudioUnit().

Here is the caller graph for this function: