• 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
AudioConverter error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioConverter error


  • Subject: AudioConverter error
  • From: Sailor Quasar <email@hidden>
  • Date: Thu, 6 Mar 2003 22:43:51 -0500

I'm using two connected V2 AudioUnits, a default output unit and a stereo mixer. My input source is an AudioFile. I'm trying to use an AudioConverter to convert the file data (interleaved 44KHz 16-bit 2-channel signed integer linear PCM) to the default input format of the stereo mixer (non-interleaved 44KHz 32-bit 2-channel floating-point linear PCM). I've managed to figure out how to stop a crash by actually allocating the right buffer size, but AudioConverter is giving me back 'insz', kAudioConverterErr_InvalidInputSize. The comment in the header says:
// e.g. byte size is not a multiple of the frame size
This makes no sense to me; my input buffer size is set as mBytesPerFrame * framesRequested. My AudioStreamBasicDescription (both the one for the file and the one for the default mixer input) is the same one passed to AudioConverterNew(). Also, this only happens the first time through my render proc; the second time through, I get an access fault exception inside AudioConverterConvertBuffer(). Can anyone help me?

-- Sailor Quasar, High Codemaster of the Web, scourge of systems
cvs server: Updating Quasar/brain/caffiene
A pepsi
R coke
Email: email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: AudioConverter error
      • From: Bill Stewart <email@hidden>
  • Prev by Date: Problem sending midi notes from virtual source
  • Next by Date: Re: [OT] After installing an Audio Unit...
  • Previous by thread: Problem sending midi notes from virtual source
  • Next by thread: Re: AudioConverter error
  • Index(es):
    • Date
    • Thread