• 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
Setting Formats...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting Formats...


  • Subject: Setting Formats...
  • From: Jim Dolan <email@hidden>
  • Date: Thu, 17 Jan 2002 14:09:03 -0500

Hi -

I am running into an error and I don't know why...


I have code which sets the Actual and Physical Formats of my device for each
stream. I set these formats using the AudioStreamSetProperty. I dynamically
get the stream ID using the kAudioDevicePropertyStreams property.

The code first sets the Physical Format then sets the Actual Format in the
same manner... Every few times that I run this code I get a bogus streamID
value when setting the Actual Format. When I call
AudioDeviceGetPropertyInfo( ... kAudioDevicePropertyStreams ..., &outSize...
)
the outsize is 0 - thus I get no stream ID, so of course I fail shortly
after. I also notice that the stream ID changes quite often, is this what
is causing me to fail?

Do I have to wait after setting the Physical Format so the stream ID's can
settle down before trying to set the Actual Format...


Thanks Jimmy D.


  • Follow-Ups:
    • Re: Setting Formats...
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: In need of documentation 2
  • Next by Date: Re: In need of documentation 2
  • Previous by thread: Audio callbacks and Midi SysEx Completion Routines
  • Next by thread: Re: Setting Formats...
  • Index(es):
    • Date
    • Thread