Re: AudioStream format problem
Re: AudioStream format problem
- Subject: Re: AudioStream format problem
- From: "Harold Mills" <email@hidden>
- Date: Thu, 9 Jan 2003 18:43:42 -0500
Jeff Moore wrote:
>
kAudioHardwareBadStreamError is only ever returned when the
>
AudioStreamID passed to a HAL API call doesn't refer to any actual
>
stream the HAL knows about. Note that changing the format of a stream
>
will usually result in a kAudioDevicePropertyStreams notification which
>
indicates that all the AudioStreamIDs on the given device are now
>
invalid. Likely, somewhere an AudioStreamID is being cached across this
>
notification.
Thank you, Jeff: this helped. Apparently, after setting the physical format
of an AudioStream one must wait for a kAudioDevicePropertyStreams
notification before attempting to do anything else with the stream,
including getting its format or starting its owning device. In addition,
after the notification a new AudioStream object must be obtained from the
getInputStreams method of the appropriate device if needed, presumably since
the old AudioStream object now contains an old, invalid AudioStreamID.
Harold Mills
Cornell Bioacoustics Research Program
_______________________________________________
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.