Re: Device sharing/release problem
Re: Device sharing/release problem
- Subject: Re: Device sharing/release problem
- From: Jeff Moore <email@hidden>
- Date: Wed, 11 Jun 2003 15:05:42 -0700
This is by design. A process has to own hog mode in order to use a
non-mixable format like AC-3. The HAL will take hog mode on behalf of
the first process that uses the device in that mode and thus lock out
other processes.
On Wednesday, June 11, 2003, at 11:51 AM, Sean Morrell wrote:
I'm working on a driver and control panel for a device that supports
AC-3.
The driver is working fine, including AC-3 mode using VideoLAN.
However
VideoLAN fails to start, getting a 'hog' error anytime the control
panel is
open. The control panel has input meters. For these to function the
control
panel will start audio streaming on the device so it can analyze the
input
samples. But it does this only when the driver is moving PCM encoded
audio.
When in the AC-3 mode, the control panel will both stop and remove the
i/o
proc from CoreAudio. Yet stopping and removing the i/o proc is not
sufficient. The control panel has to be closed before the device can
be used
by VideoLAN or other app. This is consistent with the sound
preference pane
has well. If I select the device as the default output device, I
cannot use
the device in another app. Changing the default output device back to
built-in audio controller doesn't free the device. But once system
preferences is closed, I can then use the device from VideoLAN . Now I
realize this has to do with the AC-3 format having the "fIsMixable"
flag set
to false. Which it has to be for AC-3 correct? So what is happening
here?
What must I do so the control panel can stay loaded, yet release the
device
for use by other apps?
Thank You,
Sean Morrell
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.