Audio glitches in my app!!! - InputIOProc not called regularly
Audio glitches in my app!!! - InputIOProc not called regularly
- Subject: Audio glitches in my app!!! - InputIOProc not called regularly
- From: "Info" <email@hidden>
- Date: Sat, 30 Apr 2005 18:17:18 +0200
- Importance: Normal
Hi all, this is my first post in an apple mailing list.
I'm writing an application which takes audio input from a device
(let's call it "Device A"), pocesses the stream some how then route
it through the ReWire procotol to a Master application which finally
routes this and other its own streams to a audio output device (call
it "Device B"). Device A and B can be different or even the same
hardware device.
What I'm doing right now is streaming the audio data from the Panel
App to the Device Shared Library (I coded both of them) directly in
the InputIOProc code.
No processing is done in the input callback function except for de-
interleaving stereo audio channels if the come interleaved from the
input device. The SendReWireMessage() is a non-blocking functions
and returns immediately.
In the ReWire Device Shared Library there's just a circular buffer.
Then I route streams to the Mixer App when it asks for audio data.
With this setup I'm having the streaming quite ok with floating point
samples (float) and a 48.000 sample rate. The problem is that when I
minimize some window or move the mouse over the Dock I have glitches
and the InputIOProc begin being called not regularly so that my audio
stream results broken and, most importantly, it loose the timing...
and a lot of extra latency is added randomly every time I do
UI threads to work a lot.
The problem is that I don't have any control over the OutputIOProc
and output device manipulation. Am I doing something wrong?
Do you have clues for me?! Hints please!
Enzo.
_______________________________________________
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