Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: threads



It sounds like the appIOProc (the audio callback) is directly pulling bytes from your objective c object.  The audio callback is called during the audio interrupt, so for your purposes it's synchronous.

_Mark

On Jan 6, 2008, at 5:00 AM, Roland Silver wrote:

I'm using the Sinewave class from James McCartney's Sinewave demo as the back-end for making audible sounds produced by my AttonalComposer project. The problem is my incomplete understanding of how Sinewave works.
The audio processing callback appIOProc generates a series of requests for data which are provided by code written by me. If data creation and consumption occur in different threads, then I probably need synchronization between them using a lock -- so I need to know if I'm dealing with two different threads or not.
--RS
Roland Silver
----------------------------------------------
On 2008Jan05, at 18:20, David Duncan wrote:

On Jan 5, 2008, at 4:32 PM, Roland Silver wrote:

1. Does calling AudioDeviceStart start a new thread?

That depends on if the thread servicing that device in your process has been created or not, but thats more like an implementation detail...

2. Is program which uses appIOProc multithreaded?

In the strictest sense of the word, but then a lot of things spin off threads in your process. Most GUI apps are multithreaded by this type of implementation detail in the OS.

Is there a deeper reason why you need to know this?
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

References: 
 >threads (From: Roland Silver <email@hidden>)
 >Re: threads (From: David Duncan <email@hidden>)
 >Re: threads (From: Roland Silver <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.