Does anyone know how to set the format of CoreAudio’s: AudioStreamBasicDescription structure in ASOC? I’ve just started a project using CoreAudio and Accelerate with an autocorrelative algo and I want to use CoreAudio’s buffers so I can use an instance of mData.
use framework "CoreAudio"
set audioFormat to current application's AudioStreamBasicDescription's new()
in theory yes, you can - although i also don’t have any experience in doing this.
in Xcode, you will need to create a file (probably .mm) that mixes Objective-C and C++, create an Objective-C method that calls whatever you need in C++, then call this method from ASOC. this exhausts my knowledge on the subject.
You seem to understand C++
And objective-c. I’d really recommend that you use XCode and objective-C as
AsOBJC has its limitations and also only operates on the main thread. So if your doing heavy processing you may run into problems.
I started in AppleScript then due to its limitations I ended up learning Objective c and Xcode. Now primarily program in that environment