1
0
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:
Paul Licameli
2018-03-09 13:11:20 -05:00
parent 11d217076a
commit b200819f75
116 changed files with 239 additions and 332 deletions

View File

@@ -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;
}
}

View File

@@ -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;