Thanks Ben for your long answer. It's very nice from you to spend so much time to help us!!
I tried your solution today, and I encounter this problem : - doing just a view without any slider : the compiler creates the .component but the NSView does not appear in AULAb - then I tried something similar than a AUEffect with Cocoa View, with a sub-class of NSSlider and a NSTextField to edit the volume, and I encounter this problem : Some C++ classes were not imported, I did it but then I had :
"Undefined symbols for architecture x86_64: "_AUParameterSet", referenced from: -[MonSecondSynthView iaParam1Changed:] in MonSecondSynthView.o -[MonSecondSynthView _synchronizeUIWithParameterValues] in MonSecondSynthView.o "_AUEventListenerNotify", referenced from: -[MonSecondSynthView handleMouseDown:] in MonSecondSynthView.o -[MonSecondSynthView handleMouseUp:] in MonSecondSynthView.o "_AUListenerCreate", referenced from: -[MonSecondSynthView _addListeners] in MonSecondSynthView.o "_AUListenerAddParameter", referenced from: -[MonSecondSynthView _addListeners] in MonSecondSynthView.o "_AUListenerRemoveParameter", referenced from: -[MonSecondSynthView _removeListeners] in MonSecondSynthView.o "_AUListenerDispose", referenced from: -[MonSecondSynthView _removeListeners] in MonSecondSynthView.o "_AudioUnitGetParameter", referenced from: -[MonSecondSynthView _synchronizeUIWithParameterValues] in MonSecondSynthView.o "_AUParameterListenerNotify", referenced from: -[MonSecondSynthView _synchronizeUIWithParameterValues] in MonSecondSynthView.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)"
The class concerned should be <AudioUnitUtilities.h>, but there's not the destructors inside. (???) Does someone would know what to do?
Thanks again Ben for your help. |