Re: usb mic problem
Re: usb mic problem
- Subject: Re: usb mic problem
- From: Paul Fredlein <email@hidden>
- Date: Sat, 12 May 2007 17:20:09 +1000
Hi Mike,
Thanks again for your help.
your app shouldn't attempt to set the sampling rate of the device. under normal circumstances, only the user should do that, and then typically only from Audio MIDI Setup. instead, you should adapt to the sampling rate of the device and do sample rate conversion to the rate(s) you need. plus, not all devices' sampling rates can be changed (either at all, or to the specific rate you might want). in previous mail to you and the list, i recommended using MTConversionBuffers (since you're already using MTCoreAudio), which can be found in the AudioMonitor sample app. here's a link to an earlier message on this list where we were talking about this stuff, and i included a link to universal binary and sources for my under-development version of MTCoreAudio, which has betterness over the last "official" version:
Sorry, I'm lost - too old, too few brain cells left from red wine (but good for the heart).
I've imported MTConversionBuffers into my project and setup the 'converter'. I thought that when my app hits the record callback I use: writeFromAudioBufferList to convert the data to a form for the output device but it doesn't seem to do anything (still double or 4x speed). I noticed that in AudioMonitor you call readToAudioBufferList in the play callback but then you're playing through but I'm recording to a buffer for playback later. So I'm not sure what to do.
BTW, MIDI Setup shows that the only difference on keyboard usb ports is that the left is 2 channel and the right is 1 channel.
Thanks again. Regards,
Paul
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden