Re: mFormatID != kAudioFormatLinearPCM
Re: mFormatID != kAudioFormatLinearPCM
- Subject: Re: mFormatID != kAudioFormatLinearPCM
- From: Jeff Moore <email@hidden>
- Date: Fri, 14 Mar 2003 17:45:40 -0800
Yes. I would consider that statement false.
I would consider the following statement true:
"If AudioDeviceGetProperty(kAudioDevicePropertyStreamFormat).mFormatID
!= kAudioFormatLinearPCM, the caller can safely assume that the device
does not support kAudioFormatLinearPCM currently."
You need to use kAudioDevicePropertyStreamFormats to get the list of
all the formats the stream supports. Note that I say "stream" here
because format management is a function of the AudioStream objects. The
format of an AudioDevice is acutally an array of
AudioStreamBasicDescriptions. One for each stream the device has. You
have to query each stream on the device to find out it's format.
On Friday, March 14, 2003, at 03:54 PM, Jon Lech Johansen wrote:
Does *Apple* consider the following statement to be false:
If AudioDeviceGetProperty(kAudioDevicePropertyStreamFormat).mFormatID
!=
kAudioFormatLinearPCM, the caller can safely assume that the device
does
not support kAudioFormatLinearPCM.
For the VideoLAN team,
--
Jon Lech Johansen
email@hidden
nanocrew.net/blog/
Stat sua cuique dies, breve et inreparabile tempus
omnibus est vitae; sed famam extendere factis,
hoc virtutis opus.
_______________________________________________
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.