Devices and Stream properties
Devices and Stream properties
- Subject: Devices and Stream properties
- From: Lubor Prikryl <email@hidden>
- Date: Mon, 31 Jan 2005 09:00:08 +0100
Hi,
I made a mistake attempting to obtain a list of formats from the audio device.
err = AudioDeviceGetPropertyInfo(device->devID, 0, isInput, kAudioStreamPropertyPhysicalFormats, &outSize, &outWritable);
...
err = AudioDeviceGetProperty(device->devID, 0, isInput, kAudioStreamPropertyPhysicalFormats, &outSize, formatsAvailable);
Yes, I am querying Stream format for the Device. But it always properly returns all the available formats of all the streams available on the device.
Is it allowed to consider the Device as a set of Streams and ask the Device for all the contained Streams properties at once this way?
It seems to work properly in 10.2.x and 10.3.x.
There is the same question for notifications. Can I consider the Device to be a "container of all Streams", so I can listen to any of the stream property notifications listening to device? The notifications are even sent when I do it vice versa - I add Device Property listener to a stream.
I should say that this leads to fine results, e.g. querying the stream for physical (!) formats, I always obtain 32bit, but the device returns 16/20/24 bits which I want to offer to the user.
Thanks for any answer
Lubor Prikryl
DSound (CZ)
Audio Software Developer
_______________________________________________
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