|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Dec 21, 2007, at 12:53 PM, Robert Ackerman wrote:
Hello, Looking at the MTConversionBuffer class, there are three init methods... - initWithSourceDevice:(MTCoreAudioDevice *)inputDevice destinationDevice:(MTCoreAudioDevice *)outputDevice
- initWithSourceSampleRate:(Float64)srcRate channels:(UInt32)srcChans bufferFrames:(UInt32)srcFrames destinationSampleRate:(Float64)dstRate channels:(UInt32)dstChans bufferFrames:(UInt32)dstFrames minimumBufferSeconds:(Float64)minBufferSeconds - (Boolean) _initAudioConverterWithSourceSampleRate:(Float64)srcRate channels:(UInt32)srcChans destinationSampleRate:(Float64)dstRate channels:(UInt32)dstChans It looks like first two are usable in your situation. The third creates the actual Converter -- which may or may not be all you need. Note that MTConversionBuffer is a wrapper for AudioConverterRef, which you would allocate with... extern OSStatus AudioConverterNew( const AudioStreamBasicDescription*inSourceFormat,
const AudioStreamBasicDescription*inDestinationFormat,
AudioConverterRef*outAudioConverter); What I would do is check elsewhere in the code and see if using MTConversionBuffer is necessary (does the wrapper provide an important functionality? or could you just use the AudioConverterRef and its accompanying setProperty/getProperty methods?) does that help? Jaime |
_______________________________________________ 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: | |
| >old mtcoreaudio code doesn't work now (From: Robert Ackerman <email@hidden>) | |
| >Re: old mtcoreaudio code doesn't work now (From: Jaime Magiera <email@hidden>) | |
| >Re: old mtcoreaudio code doesn't work now (From: Robert Ackerman <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.