• 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: usb mic problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >usb mic problem (From: Paul Fredlein <email@hidden>)
 >Re: usb mic problem (From: Michael Thornburgh <email@hidden>)

  • Prev by Date: Re: ExtAudioFileDispose not releasing certain files
  • Next by Date: Audio Fragment
  • Previous by thread: Re: usb mic problem
  • Next by thread: ExtAudioFileDispose not releasing certain files
  • Index(es):
    • Date
    • Thread