cog/Audio/Chain/OutputNode.h

45 lines
784 B
C
Raw Normal View History

2006-01-20 15:34:02 +00:00
//
// OutputNode.h
2006-01-20 15:34:02 +00:00
// Cog
//
// Created by Vincent Spader on 8/2/05.
// Copyright 2005 Vincent Spader. All rights reserved.
2006-01-20 15:34:02 +00:00
//
#import <Cocoa/Cocoa.h>
#import <CoreAudio/AudioHardware.h>
#import <AudioToolbox/AudioToolbox.h>
#import <AudioUnit/AudioUnit.h>
#import "Node.h"
#import "OutputCoreAudio.h"
@interface OutputNode : Node {
AudioStreamBasicDescription format;
2007-05-22 23:37:22 +00:00
unsigned long amountPlayed;
2006-01-20 15:34:02 +00:00
OutputCoreAudio *output;
}
- (double)amountPlayed;
2006-01-20 15:34:02 +00:00
- (void)setup;
- (void)process;
- (void)close;
2006-04-02 20:03:12 +00:00
- (void)seek:(double)time;
2006-01-20 15:34:02 +00:00
- (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;
2006-01-20 15:34:02 +00:00
@end