Re: Native Device Formats
Re: Native Device Formats
- Subject: Re: Native Device Formats
- From: "Mikael Hakman" <email@hidden>
- Date: Mon, 16 Jun 2008 21:54:07 +0200
- Organization: Datakonsulten AB
On Monday, June 16, 2008 9:06 PM, Jeff Moore wrote:
Note that the HAL won't show a process the non-mixable linear PCM formats
(which would include any integer formats) in the format list until your
process owns hog mode for the given device.
Hog mode requirement is understandable. The way for a process to acquire
this hog mode, before starting IOProc, is to use AudioDeviceSetProperty
(AudioObjectSetPropertyData) with kAudioDevicePropertyHogMode and process
own pid, right?
This is generally why drivers need to know the difference between AC-3
data packed into 16 bit stereo samples and real 16 bit stereo samples.
Exactly!
That said, not all SPDIF devices I've run into over the years do the
right thing in this regard. Many will send AC-3 without also setting the
data bit in the SPDIF payload. I always test new hardware with the volume
down at first =)
Very wise - I did this mistake once and got static from un-decoded AC-3 at
130 dB - I will never do this again - starting Jumbo jet engines at full
throttle from 1 m distance - danger of permanent damage of your psychical
and physical health!
_______________________________________________
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