2006-01-20 15:34:02 +00:00
|
|
|
//
|
2006-04-02 15:44:08 +00:00
|
|
|
// OutputNode.h
|
2006-01-20 15:34:02 +00:00
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Zaphod Beeblebrox on 8/2/05.
|
|
|
|
// Copyright 2005 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#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;
|
|
|
|
|
2006-04-02 15:44:08 +00:00
|
|
|
int amountPlayed;
|
2006-01-20 15:34:02 +00:00
|
|
|
OutputCoreAudio *output;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id)initWithController:(id)c previousLink:p;
|
|
|
|
|
2006-04-02 15:44:08 +00:00
|
|
|
- (double)amountPlayed;
|
|
|
|
|
2006-01-20 15:34:02 +00:00
|
|
|
- (void)setup;
|
|
|
|
- (void)process;
|
2006-04-02 15:44:08 +00:00
|
|
|
- (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;
|
|
|
|
|
|
|
|
@end
|