• 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
Re: AudioStream format problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: AU Components on the fly
  • Next by Date: Re: AU - avoiding crash when unregistering control class
  • Previous by thread: Re: AudioStream format problem
  • Next by thread: Re: multiple track synthesizer problem
  • Index(es):
    • Date
    • Thread