Re: Available Audio Formats
Re: Available Audio Formats
- Subject: Re: Available Audio Formats
- From: Laurent Cerveau <email@hidden>
- Date: Mon, 8 Oct 2001 23:16:30 +0200
On Monday, October 8, 2001, at 11:03 PM, Sean Morrell wrote:
Does CoreAudio and
IOAudioFamily have a mechanism to support such dependencies? As an
alternate approach, could a device driver provide a custom configuration
dialog, opened by a host application through CoreAudio?
This is definitely (at leat for me) a driver problem.
The driver is free to export what is suited for the device as formats.
You need to make a driver
that returns only legal configs and the HAL APIs will export that
without any problem. You may look
at the USB audio driver code in Darwin to see how to populate a list of
formats. If your device is a USB
one, and ou want to reuse the Apple code for USB driver, you can
subclass it.
Laurent
Laurent Cerveau
Applications Engineering
Apple Computer Inc.
email@hidden