尝试在macOS上编写AUv3。我从auval
收到以下错误:
VERIFYING CLASS INFO
ERROR: Class Data does not have required field:<type> == componentType
似乎某种元数据配置错误。
这是什么意思?
Class Data
实际上指的是kAudioUnitProperty_ClassInfo
。所以错误与 AUv3fullState
有关,它被桥接到 AUv2kAudioUnitProperty_ClassInfo
。希什。
根本问题是我的fullState
方法没有调用超类fullState
。
此解决方法对我有用:
- (NSDictionary<NSString *, id> *)getFullState {
NSDictionary* pluginState = [data.controller getState];
NSDictionary* superState = [super fullState];
NSMutableDictionary* stateRes = [NSMutableDictionary dictionaryWithDictionary:pluginState];
[stateRes addEntriesFromDictionary:superState];
return stateRes;
}