• 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
Buffers Format Conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Buffers Format Conversion


  • Subject: Buffers Format Conversion
  • From: "Malik 522" <email@hidden>
  • Date: Fri, 14 Oct 2005 15:09:49 +0000

Hello

I tried to convert a PCM 44khz - 4 bytes/packet to 8 khz - 2bytes/packet with this function : AudioConverterConvertBuffer. But it does not seem to work, my buffer is not converted...

AudioUnitRender gives me a 512 frames (4bytes/frame), so I used AudioConverterConvertBuffer. My code :

=====================================================

AudioUnitRender(theInputUnit, &flags, &myTimeStamp, inBusNumber, inNumberFrames, theAudioData);

waveform = malloc(theAudioData->mBuffers[0].mDataByteSize);

bzero(waveform, inNumberFrames*4);

AudioConverterConvertBuffer(converter, theAudioData->mBuffers[0].mDataByteSize, theAudioData->mBuffers[j].mData, &bufferSize, waveform);

=====================================================

Is there an another function to convert buffers in a specific format ?


_______________________________________________ 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
  • Prev by Date: Sampling Rate Master
  • Next by Date: Possible Buffer Size of an audio device
  • Previous by thread: Re: Using the new MovieAudioExtractionFillBuffer() on a MIDI file
  • Next by thread: Possible Buffer Size of an audio device
  • Index(es):
    • Date
    • Thread