OpenAL in a OSX GUI App
OpenAL in a OSX GUI App
- Subject: OpenAL in a OSX GUI App
- From: Alexander Bollbach <email@hidden>
- Date: Sat, 30 Jan 2016 02:28:32 +0000
Again, I'm working through this Learning Core Audio and I just finished the Open AL chapters. Aside from some issues with buffers (
EXC_BAD_ACCESS abound.. out of bounds, that is), I have gotten the examples to work as intended in a command line project. I have, perhaps naively, placed most of the first example's code in 'applicationDidFinishLaunching:' in the App Delegate of a fresh GUI based project. My simple aim was to create a few sliders for the X,Y,Z dimensions of the 3d audio source and perhaps graduate to some simple renderings and animations controlling sound such as in a game. The problem is concurrency. Maybe, I'm just missing something but
This Gist links to the code I have in AppDelegate.m and I just can't see how to get the function '
updateSourceLocation:' to loop in some thread while I modify its x,y,z parameters using UI elements. I tried wrapping it in a dispatch but that only made it worse. Any ideas?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden