Discuss [iPhone SDK] Problem with playback audio using AudioQueue at the iPhone Developer Exchange - Hackint0sh.org; Hello,
i have created a simple audio playback using the audio queue feature. My destination ...
-
[iPhone SDK] Problem with playback audio using AudioQueue
Hello,
i have created a simple audio playback using the audio queue feature. My destination is to create background music; nothing more. If you have a look at the Apple examples, you always find the code:
do {
CFRunLoopRunInMode (kCFRunLoopDefaultMode, 0.25, false);
} while (mIsRunning);
If i put these lines in the code, then the audio is playing correctly, but the UI is not reacting! I can push no button!
What do i have to do? Do i have to created a thread? Please help! Thank you!
-
-
You only need that do-while loop if you are running the code in a separate thread. The main thread already has one of those things.
So your options are either to remove the loop and see how it works, or to detach a new thread, and leave the loop in there.
-
Similar Threads
-
By hackint0sh in forum Latest Headlines
Replies: 0
Last Post: 11-13-2009, 05:10 PM
-
By hackint0sh in forum Latest Headlines
Replies: 0
Last Post: 10-10-2009, 12:10 AM
-
By aristotele in forum AppleTV 1
Replies: 0
Last Post: 09-16-2009, 09:34 PM
-
By shabuya in forum General
Replies: 2
Last Post: 03-16-2008, 02:46 PM
-
By asher_ungar in forum Tools
Replies: 5
Last Post: 01-04-2008, 09:45 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks