Re: Do not want multiple clients mixing my audio
Re: Do not want multiple clients mixing my audio
- Subject: Re: Do not want multiple clients mixing my audio
- From: John Johnson <email@hidden>
- Date: Fri, 14 May 2010 14:21:51 -0500
> IOAudio drivers are multi-client by design. By being in the kernel and writing one of these drivers, you are signing up to support this. If you only want one application to use your driver, you should not make your driver be an IOAudio-based driver. You should write something else and have your app talk to that.
Hmm yeah I guess I'm straying outside of what people consider... acceptable? I have always thought outside the box though, and one enjoyable aspect of being a programmer is that you tell the computer what to do, not the other way around. So in the end, I am sure I will find out how to do this, by subclassing all of IOAudioFamily if I have to :)
BTW, I was not asking how to control who connects to the driver, just how to prevent audio from being mixed. I am positive that non-mixable audio is not against kernel architecture :)
> One more thing: You could do this as a user-land driver, as others were suggesting previously. Being in user-land gives you complete control over where your driver is used and where it isn't.
As I know you're fully aware, I have explained that this option doesn't work for me. I know it's easy to assume that because of the nature of the questions I am asking that I couldn't possibly know this for sure or I have just overlooked it, but yes, I know my only option is a kernel driver, or I would not still be futilely asking questions on this list about it, nor would I have wasted the last 3 weeks pursuing this. I'm sure you yourself probably think I'm a little slow to understand that user-land is where I "belong", but I'm not, I just don't have that option for what I'm doing. And I'm a little confused why people must understand WHY I am doing something. I would rather they just answered the question... or not.
The thing about this list and a couple other lists around here is that before help is given, the reason must be approved. I have several times been frustrated with going through this "approval process" in order to get a question answered. This is mainly because these lists are a last resort and I only turn to them when I've beat my head against the wall for several days already. Typically it's me doing something outside the normal way. Yep, just me thinking outside the box again :) Oftentimes, people say "don't do that, it doesn't work like that" and I find out that they are wrong. But hey, it's not their job to write my programs for me, so I chalk it up to lesson learned. The ONLY way to learn in the programming world, IMO.
Anyhow, don't mean to spark a debate or go too far off topic, just giving you all food for thought, and some feedback on my experience here. _______________________________________________
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