2006-01-20 12:34:02 -03:00
|
|
|
//
|
2006-04-02 11:44:08 -04:00
|
|
|
// InputNode.h
|
2006-01-20 12:34:02 -03:00
|
|
|
// Cog
|
|
|
|
//
|
2006-09-04 14:46:18 -04:00
|
|
|
// Created by Vincent Spader on 8/2/05.
|
|
|
|
// Copyright 2005 Vincent Spader. All rights reserved.
|
2006-01-20 12:34:02 -03:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import <CoreAudio/AudioHardware.h>
|
|
|
|
#import <AudioToolbox/AudioToolbox.h>
|
|
|
|
#import <AudioUnit/AudioUnit.h>
|
|
|
|
|
2007-02-24 17:36:27 -03:00
|
|
|
#import "AudioDecoder.h"
|
2007-03-03 14:19:37 -03:00
|
|
|
#import "Converter.h"
|
2006-01-20 12:34:02 -03:00
|
|
|
#import "Node.h"
|
2007-02-24 17:36:27 -03:00
|
|
|
#import "Plugin.h"
|
2006-01-20 12:34:02 -03:00
|
|
|
|
|
|
|
@interface InputNode : Node {
|
2007-02-24 17:36:27 -03:00
|
|
|
id<CogDecoder> decoder;
|
2007-03-03 14:19:37 -03:00
|
|
|
Converter *converter;
|
|
|
|
|
|
|
|
AudioStreamBasicDescription outputFormat;
|
2006-04-02 16:03:12 -04:00
|
|
|
|
|
|
|
BOOL shouldSeek;
|
|
|
|
double seekTime;
|
2006-01-20 12:34:02 -03:00
|
|
|
}
|
|
|
|
|
2007-03-03 14:19:37 -03:00
|
|
|
- (BOOL)openURL:(NSURL *)url withSource:(id<CogSource>)source outputFormat:(AudioStreamBasicDescription)of;
|
2006-01-20 12:34:02 -03:00
|
|
|
- (void)process;
|
2007-02-24 17:36:27 -03:00
|
|
|
- (NSDictionary *) properties;
|
2006-04-02 16:03:12 -04:00
|
|
|
- (void)seek:(double)time;
|
|
|
|
|
2007-03-03 14:19:37 -03:00
|
|
|
- (void)registerObservers;
|
2006-01-20 12:34:02 -03:00
|
|
|
|
|
|
|
@end
|