Re: kAudioStreamPropertyTerminalType return values
Re: kAudioStreamPropertyTerminalType return values
- Subject: Re: kAudioStreamPropertyTerminalType return values
- From: Jeff Moore <email@hidden>
- Date: Thu, 13 Aug 2009 11:25:40 -0700
Think of the various lists as suggested return values, as the value
for the terminal type may come from the list in either header. The
value can also be driver specific and therefore not in either header.
Also, don't forget that a driver is also free to not specify any
terminal type at all. Indeed, it is also possible that a device can
say it has a SPDIF interface and still not support sending out AC-3
data.
In general, it is more reliable to identify the devices that support
AC-3 output over SPDIF by looking for a device that has an output
stream that supports the format, kAudioFormat60958AC3.
On Aug 13, 2009, at 3:55 AM, Ryan Walklin wrote:
I'm still working on my AC3 encoder driver, and was attempting to
use kAudioStreamPropertyTerminalType to find SPDIF interfaces
attached to my Mac. I was expecting it to return a value as defined
in AudioHardware.h, ie kAudioStreamTerminalTypeDigitalAudioInterface
or similar. However, after checking the HALLab source, I find it
returns a terminal define in IOKit's AudioTypes.h. This works just
as well, but I was wondering what the point of having the various
terminal type defines in AudioHardware.h was, particularly as the
header suggests these are returned when the terminal type is queried.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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