mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Workaround for an obscure compiler error
This commit is contained in:
parent
fb8a1dbf48
commit
e469806f66
1 changed files with 4 additions and 7 deletions
|
|
@ -55,9 +55,6 @@
|
|||
#include "CAVectorUnit.h"
|
||||
#include "CAXException.h"
|
||||
|
||||
// NB: This line added for JUCE, for backwards-compatibility with pre-10.8 frameworks
|
||||
#define kAudioUnitProperty_NickName ((AudioUnitPropertyID) 54)
|
||||
|
||||
// This is for JUCE, added as a workaround for problems in older hosts following an API change.
|
||||
struct OldHostCallbackInfo
|
||||
{
|
||||
|
|
@ -549,7 +546,7 @@ OSStatus AUBase::DispatchGetPropertyInfo(AudioUnitPropertyID inID,
|
|||
outWritable = false;
|
||||
break;
|
||||
|
||||
case kAudioUnitProperty_NickName:
|
||||
case /*kAudioUnitProperty_NickName*/ 54:
|
||||
ca_require(inScope == kAudioUnitScope_Global, InvalidScope);
|
||||
outDataSize = sizeof(CFStringRef);
|
||||
outWritable = true;
|
||||
|
|
@ -800,7 +797,7 @@ OSStatus AUBase::DispatchGetProperty( AudioUnitPropertyID inID,
|
|||
*(Float64*)outData = mCurrentRenderTime.mSampleTime;
|
||||
break;
|
||||
|
||||
case kAudioUnitProperty_NickName:
|
||||
case /*kAudioUnitProperty_NickName*/ 54:
|
||||
// Ownership follows Core Foundation's 'Copy Rule'
|
||||
if (mNickName) CFRetain(mNickName);
|
||||
*(CFStringRef*)outData = mNickName;
|
||||
|
|
@ -1015,7 +1012,7 @@ OSStatus AUBase::DispatchSetProperty( AudioUnitPropertyID inID,
|
|||
|
||||
#endif // !CA_NO_AU_UI_FEATURES
|
||||
|
||||
case kAudioUnitProperty_NickName:
|
||||
case /*kAudioUnitProperty_NickName*/ 54:
|
||||
{
|
||||
ca_require(inScope == kAudioUnitScope_Global, InvalidScope);
|
||||
ca_require(inDataSize == sizeof(CFStringRef), InvalidPropertyValue);
|
||||
|
|
@ -1102,7 +1099,7 @@ OSStatus AUBase::DispatchRemovePropertyValue (AudioUnitPropertyID inID,
|
|||
|
||||
#endif // !CA_NO_AU_UI_FEATURES
|
||||
|
||||
case kAudioUnitProperty_NickName:
|
||||
case /*kAudioUnitProperty_NickName*/ 54:
|
||||
{
|
||||
if(inScope == kAudioUnitScope_Global) {
|
||||
if (mNickName) CFRelease(mNickName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue