// // OutputNode.h // Cog // // Created by Vincent Spader on 8/2/05. // Copyright 2005 Vincent Spader. All rights reserved. // #import #import #import #import #import "Node.h" #import "OutputCoreAudio.h" @interface OutputNode : Node { AudioStreamBasicDescription format; double amountPlayed; double sampleRatio; OutputCoreAudio *output; BOOL paused; BOOL started; } - (double)amountPlayed; - (void)incrementAmountPlayed:(long)count; - (void)resetAmountPlayed; - (void)endOfInputPlayed; - (void)endOfInputPlayedOut; - (double)secondsBuffered; - (void)setup; - (void)process; - (void)close; - (void)seek:(double)time; - (int)readData:(void *)ptr amount:(int)amount; - (void)setFormat:(AudioStreamBasicDescription *)f; - (AudioStreamBasicDescription) format; - (void)setVolume:(double) v; - (void)setShouldContinue:(BOOL)s; - (void)pause; - (void)resume; - (BOOL)isPaused; @end