Re: Getting Default Output Device gives a strange answer
Re: Getting Default Output Device gives a strange answer
- Subject: Re: Getting Default Output Device gives a strange answer
- From: Andrew Kimpton <email@hidden>
- Date: Tue, 14 Nov 2006 16:18:08 -0500
Quoting Jeff Moore <email@hidden>:
In order for a device to be allowed to be the default device, it has to
meet the following criteria:
1) It has to allow itself to be the default device.
2) It can't be hogged.
3) It has to have at least one mixable linear PCM stream in the given
direction whose terminal type is general purpose (includes streams that
don't provide a terminal type).
Chances are that your experiments with AC-3 have left the device in a
state such that it can't satisfy the third criterium. Rebooting won't
help, as the HAL will be happy to restore the device's format to AC-3
(I had a bug to keep this from happening that may be fixed in Tiger,
though). The thing to do to fix this state is to open AMS and manually
select a linear PCM format.
OK - I'll give that a try when I get home (at work - no where near the
problem machine - right now).
In order to avoid this sort of thing should I make sure to install
some sort of 'atexit' handler to release hog mode before the app quits
? That won't protect against crashes but would at least protect
against impatient 'ctrl-c' usage.
Thanks
Andrew 8-)
_______________________________________________
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