mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Use IdentInterfaceSymbol to identify commands and effects
This commit is contained in:
@@ -111,12 +111,7 @@ wxString AudioUnitEffectsModule::GetPath()
|
||||
return mPath;
|
||||
}
|
||||
|
||||
wxString AudioUnitEffectsModule::GetSymbol()
|
||||
{
|
||||
return wxT("Audio Unit Effects");
|
||||
}
|
||||
|
||||
wxString AudioUnitEffectsModule::GetName()
|
||||
IdentInterfaceSymbol AudioUnitEffectsModule::GetSymbol()
|
||||
{
|
||||
/* 18n-hint: Audio Unit is the name of an Apple audio software protocol */
|
||||
return XO("Audio Unit Effects");
|
||||
@@ -885,16 +880,11 @@ wxString AudioUnitEffect::GetPath()
|
||||
return mPath;
|
||||
}
|
||||
|
||||
wxString AudioUnitEffect::GetSymbol()
|
||||
IdentInterfaceSymbol AudioUnitEffect::GetSymbol()
|
||||
{
|
||||
return mName;
|
||||
}
|
||||
|
||||
wxString AudioUnitEffect::GetName()
|
||||
{
|
||||
return GetSymbol();
|
||||
}
|
||||
|
||||
IdentInterfaceSymbol AudioUnitEffect::GetVendor()
|
||||
{
|
||||
return { mVendor };
|
||||
@@ -1966,7 +1956,9 @@ bool AudioUnitEffect::SetRateAndChannels()
|
||||
sizeof(Float64));
|
||||
if (result != noErr)
|
||||
{
|
||||
wxPrintf("%ls Didn't accept sample rate on global\n", GetName().wx_str());
|
||||
wxPrintf("%ls Didn't accept sample rate on global\n",
|
||||
// Exposing internal name only in debug printf
|
||||
GetSymbol().Internal().wx_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1980,7 +1972,9 @@ bool AudioUnitEffect::SetRateAndChannels()
|
||||
sizeof(Float64));
|
||||
if (result != noErr)
|
||||
{
|
||||
wxPrintf("%ls Didn't accept sample rate on input\n", GetName().wx_str());
|
||||
wxPrintf("%ls Didn't accept sample rate on input\n",
|
||||
// Exposing internal name only in debug printf
|
||||
GetSymbol().Internal().wx_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1992,7 +1986,9 @@ bool AudioUnitEffect::SetRateAndChannels()
|
||||
sizeof(AudioStreamBasicDescription));
|
||||
if (result != noErr)
|
||||
{
|
||||
wxPrintf("%ls didn't accept stream format on input\n", GetName().wx_str());
|
||||
wxPrintf("%ls didn't accept stream format on input\n",
|
||||
// Exposing internal name only in debug printf
|
||||
GetSymbol().Internal().wx_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -2007,7 +2003,9 @@ bool AudioUnitEffect::SetRateAndChannels()
|
||||
sizeof(Float64));
|
||||
if (result != noErr)
|
||||
{
|
||||
wxPrintf("%ls Didn't accept sample rate on output\n", GetName().wx_str());
|
||||
wxPrintf("%ls Didn't accept sample rate on output\n",
|
||||
// Exposing internal name only in debug printf
|
||||
GetSymbol().Internal().wx_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2021,7 +2019,9 @@ bool AudioUnitEffect::SetRateAndChannels()
|
||||
|
||||
if (result != noErr)
|
||||
{
|
||||
wxPrintf("%ls didn't accept stream format on output\n", GetName().wx_str());
|
||||
wxPrintf("%ls didn't accept stream format on output\n",
|
||||
// Exposing internal name only in debug printf
|
||||
GetSymbol().Internal().wx_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@@ -53,8 +53,7 @@ public:
|
||||
// IdentInterface implementation
|
||||
|
||||
wxString GetPath() override;
|
||||
wxString GetSymbol() override;
|
||||
wxString GetName() override;
|
||||
IdentInterfaceSymbol GetSymbol() override;
|
||||
IdentInterfaceSymbol GetVendor() override;
|
||||
wxString GetVersion() override;
|
||||
wxString GetDescription() override;
|
||||
@@ -233,8 +232,7 @@ public:
|
||||
// IdentInterface implementation
|
||||
|
||||
wxString GetPath() override;
|
||||
wxString GetSymbol() override;
|
||||
wxString GetName() override;
|
||||
IdentInterfaceSymbol GetSymbol() override;
|
||||
IdentInterfaceSymbol GetVendor() override;
|
||||
wxString GetVersion() override;
|
||||
wxString GetDescription() override;
|
||||
|
Reference in New Issue
Block a user