The sliders are not created in applicationDidFinishLaunching:  just the
OpenAL setup code.  The problem seems to be, unlike audio unit stuff that
automatically calls back on a background thread, in this example the openAL
functions to replenish the buffers and update the source location happen
serially on the mainthread.  I haven't figured out how to run them on a
background thread without OpenAL throwing an error.

On Sat, Jan 30, 2016 at 6:05 AM Aran Mulholland <[email protected]>
wrote:

> I think you should look at a basic UI app. The code for the sliders should
> not be in applicationDidFinishLaunching as this is an event callback that
> is fired. Look at how to make a basic UI app first. The sliders should be
> in a view.
>
> On Sat, Jan 30, 2016 at 1:28 PM, Alexander Bollbach <
> [email protected]> wrote:
>
>> 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
>> <http://stackoverflow.com/questions/34987453/extaudiofileread-crashing-periodically-with-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
>> <https://gist.github.com/AlexanderBollbach/d37e164fb829ea2489e4> 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 protected])
>> Help/Unsubscribe/Update your Subscription:
>>
>> https://lists.apple.com/mailman/options/coreaudio-api/aranmulholland%40gmail.com
>>
>> This email sent to [email protected]
>>
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to