Setting Formats...
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.