// // ConverterNode.h // Cog // // Created by Vincent Spader on 8/2/05. // Copyright 2005 Vincent Spader. All rights reserved. // #import #import #import #import @interface Converter : NSObject { AudioConverterRef converter; void *outputBuffer; int outputBufferSize; //Temporary for callback use void *inputBuffer; int inputBufferSize; BOOL needsReset; //end int outputSize; AudioStreamBasicDescription inputFormat; AudioStreamBasicDescription outputFormat; } - (void *)outputBuffer; - (int)outputBufferSize; - (void)setupWithInputFormat:(AudioStreamBasicDescription)inputFormat outputFormat:(AudioStreamBasicDescription)outputFormat; - (void)cleanUp; - (void)reset; //Returns the amount actually read from input - (int)convert:(void *)input amount:(int)inputSize; @end