Re: HALOutputUnit (Pt 2)
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.