auval: 错误: 类数据没有必填字段:<type> == 组件类型



尝试在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;
}

相关内容

最新更新