Hi everyone,
I am still trying to synch what people hear and what people see on the iPhone, and if I do not completely misunderstand the docs, AudioQueue is the way to go. The audio part of my app actually works nicely. But I am wondering, how to go about the "video synching". For starters, I would be happy if I could get *any* kind of synching, e.g. displaying images depending on what my AudioQueue does.
So I have two questions:
(1) Is there any way to know (code-wise) when an audio-buffer is being played? At the moment, I have the AudioQueue run in a separate thread in a loop, and the loop constantly polls the AudioQueue for its current playback position. Although it works, this seems kind of awkward to me from a technical point of view. Furthermore, I cannot see how this should be the promised "audio-video-synching" feature of the AudioQueue.
(2) How else would one do this? I have asked this before (unfortunately without any reaction), but to quote the documentation: "You can use (AudioQueue) to synchronize (...) audio with video.". That's what I'd like to do, but I don't know how.
Sorry for the rather long mail, but I am really lost here.
Kind regards, Michael |