cog/Audio/Chain/InputNode.h

52 lines
925 B
C
Raw Normal View History

2006-01-20 15:34:02 +00:00
//
// InputNode.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 "AudioDecoder.h"
2006-01-20 15:34:02 +00:00
#import "Node.h"
#import "Plugin.h"
2006-01-20 15:34:02 +00:00
#define INPUT_NODE_SEEK
2006-01-20 15:34:02 +00:00
@interface InputNode : Node {
id<CogDecoder> decoder;
int bytesPerSample;
int bytesPerFrame;
BOOL floatingPoint;
BOOL swapEndian;
2006-04-02 20:03:12 +00:00
BOOL shouldSeek;
long seekFrame;
BOOL observersAdded;
Semaphore *exitAtTheEndOfTheStream;
2006-01-20 15:34:02 +00:00
}
@property(readonly) Semaphore *exitAtTheEndOfTheStream;
2006-01-20 15:34:02 +00:00
2007-10-14 18:12:15 +00:00
- (BOOL)openWithSource:(id<CogSource>)source;
- (BOOL)openWithDecoder:(id<CogDecoder>) d;
2006-01-20 15:34:02 +00:00
- (void)process;
- (NSDictionary *) properties;
- (void)seek:(long)frame;
2006-04-02 20:03:12 +00:00
- (void)registerObservers;
2006-01-20 15:34:02 +00:00
- (BOOL)setTrack:(NSURL *)track;
- (id<CogDecoder>) decoder;
2006-01-20 15:34:02 +00:00
@end