• 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: HALOutputUnit (Pt 2)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HALOutputUnit (Pt 2)


  • Subject: Re: HALOutputUnit (Pt 2)
  • From: Bob Stuller <email@hidden>
  • Date: Thu, 26 Feb 2004 10:22:00 -0500

Craig, Greetings!

At 7:50 AM -0500 2/26/04, Craig Bakalian wrote:
> The only problem with code below is that it will crash if the
>default microphone
>is a USB microphone. Unless someone can tell me otherwise. Why does the code
>below crash with a _CurrentDevice on a USB microphone?

This is basically my setup: I use 3 different usb headsets. Which
step is crashing?

Mind you, I put a lot of effort into verifying that I have a valid
format including setting the nominal sample rate & testing that there
is a stream with that rate, picking my favorite physical format, etc.
Getting a good format set on the device is very important.

Which is why Bill Stewart tells me to forgo manually setting up formats:
At 6:42 PM -0800 2/25/04, William Stewart wrote:
>You might want to look at CAStreamBasicDescription in PublicUtility
>- it provides some very convenient methods to set a format:
> CAStreamBasicDescription desc;
> desc.SetCanonical (numChannels, false);
> desc.mSampleRate = mySampleRate;

Of course he's right, I'm just old-fashioned. I _have_ read the code
that he is talking about.

Peace,
Bob
--

Sir Isaac Newton secretly admitted to some friends: He understood how
gravity behaved, but not how it worked !!
- Lily Tomlin
The Search for Signs of Intelligent Life in the Universe
_______________________________________________
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.


References: 
 >Re: HALOutputUnit (Pt 2) (From: Craig Bakalian <email@hidden>)

  • Prev by Date: Re: HALOutputUnit (Pt 2)
  • Next by Date: Re: HALOutputUnit (Pt 2)
  • Previous by thread: Re: HALOutputUnit (Pt 2)
  • Next by thread: Re: HALOutputUnit (Pt 2)
  • Index(es):
    • Date
    • Thread