Re: implementing an AudioIOFunction
Re: implementing an AudioIOFunction
- Subject: Re: implementing an AudioIOFunction
- From: Josh Rodatus <email@hidden>
- Date: Mon, 25 Dec 2006 22:21:29 -0500
Hello all,
I apologize for not being clear.
As I mentioned earlier, my user-space program is a music beat
visualizer. It merely needs read access to the outbound audio stream,
and it gets it from my kernel extension. No audio is sent back to the
kernel. To minimize latency, all the AudioIOFunction does is send the
samples over a socket to my program - no preprocessing. You will find
the source code and more detail in one of my previous posts in this
thread.
So once again my problem is this. The client program is using very
little CPU, yet the system audio stutters when I even as much as
activate a window. So I conclude that using a socket to transfer the
samples from kernel to program isn't efficient enough, and am in search
of an alternative.
Once again, sorry if I wasn't clear the first time.
Thanks,
Josh
On Dec 25, 2006, at 5:16 PM, Michael Smith wrote:
Reading between the lines, I assume you are trying to process the
outbound audio stream in user-space, before pushing it back into the
kernel?
This will be hard to make work well; the code in the kernel is likely
to assume that the output path has a fairly low and constant latency.
To emulate this you are going to have to elevate the priority of your
user task, and if you mess that up the UI implications are severe.
Is there any reason you can't do your audio processing in-line?
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden