Re: implementing an AudioIOFunction
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hello all, I apologize for not being clear. Once again, sorry if I wasn't clear the first time. Thanks, Josh 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Josh Rodatus