• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Devices and Stream properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Devices and Stream properties
      • From: Jeff Moore <email@hidden>
References: 
 >AudioOutputUnitStart (From: john <email@hidden>)

  • Prev by Date: Audio Drop-outs - VM?
  • Next by Date: USB Class Driver
  • Previous by thread: AudioOutputUnitStart
  • Next by thread: Re: Devices and Stream properties
  • Index(es):
    • Date
    • Thread