| @@ -143,6 +143,12 @@ public: | |||||
| outDataSize = sizeof (UInt32); | outDataSize = sizeof (UInt32); | ||||
| return noErr; | return noErr; | ||||
| } | } | ||||
| else if (inID == kMusicDeviceProperty_InstrumentCount) | |||||
| { | |||||
| outDataSize = sizeof (UInt32); | |||||
| outWritable = false; | |||||
| return noErr; | |||||
| } | |||||
| } | } | ||||
| return JuceAUBaseClass::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable); | return JuceAUBaseClass::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable); | ||||
| @@ -166,6 +172,11 @@ public: | |||||
| *(UInt32*) outData = (juceFilter != 0 && juceFilter->isNonRealtime()) ? 1 : 0; | *(UInt32*) outData = (juceFilter != 0 && juceFilter->isNonRealtime()) ? 1 : 0; | ||||
| return noErr; | return noErr; | ||||
| } | } | ||||
| else if (inID == kMusicDeviceProperty_InstrumentCount) | |||||
| { | |||||
| *(UInt32*) outData = 1; | |||||
| return noErr; | |||||
| } | |||||
| } | } | ||||
| return JuceAUBaseClass::GetProperty (inID, inScope, inElement, outData); | return JuceAUBaseClass::GetProperty (inID, inScope, inElement, outData); | ||||