Re: Hog mode
Re: Hog mode
- Subject: Re: Hog mode
- From: Jeff Moore <email@hidden>
- Date: Mon, 26 Nov 2001 14:26:03 -0800
I deleted the questions about hog mode before I had a chance to answer them.
Sorry.
At any rate, Hog mode allows a process to prevent other processes on the
system from using a given device. The hog mode property is a toggle. You
claim hog mode by setting the hog mode property. As the documentation says,
it doesn't matter what value you pass in (The reason why is that there is
only one valid value to pass in, your process's PID, which the HAL already
knows), but you'll get back the PID for the process that owns hog mode for
that device. You release hog mode by setting the property again (again it
doesn't matter what value you pass in). You'll get an error back from
AudioDeviceSetProperty if hog mode is already held by some other process or
something bad happens while trying to fulfill the request.
I'm sure this doesn't answer all the questions in that rather long post, so
feel free to follow up.
--
Jeff Moore
Core Audio
Apple