2006-01-20 15:34:02 +00:00
|
|
|
//
|
2006-04-02 15:44:08 +00:00
|
|
|
// InputNode.h
|
2006-01-20 15:34:02 +00:00
|
|
|
// Cog
|
|
|
|
//
|
2006-09-04 18:46:18 +00:00
|
|
|
// 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>
|
|
|
|
|
2007-02-24 20:36:27 +00:00
|
|
|
#import "AudioDecoder.h"
|
2006-01-20 15:34:02 +00:00
|
|
|
#import "Node.h"
|
2007-02-24 20:36:27 +00:00
|
|
|
#import "Plugin.h"
|
2006-01-20 15:34:02 +00:00
|
|
|
|
2013-10-12 20:52:58 +00:00
|
|
|
#define INPUT_NODE_SEEK
|
|
|
|
|
2006-01-20 15:34:02 +00:00
|
|
|
@interface InputNode : Node {
|
2007-02-24 20:36:27 +00:00
|
|
|
id<CogDecoder> decoder;
|
2007-03-03 17:19:37 +00:00
|
|
|
|
2013-10-02 06:00:16 +00:00
|
|
|
int bytesPerSample;
|
2007-11-24 20:16:27 +00:00
|
|
|
int bytesPerFrame;
|
2013-10-05 21:15:09 +00:00
|
|
|
BOOL floatingPoint;
|
2013-10-02 06:00:16 +00:00
|
|
|
BOOL swapEndian;
|
2007-11-24 20:16:27 +00:00
|
|
|
|
2006-04-02 20:03:12 +00:00
|
|
|
BOOL shouldSeek;
|
2007-11-24 20:16:27 +00:00
|
|
|
long seekFrame;
|
2022-01-30 05:10:59 +00:00
|
|
|
|
|
|
|
BOOL observersAdded;
|
2013-10-12 20:52:58 +00:00
|
|
|
|
|
|
|
Semaphore *exitAtTheEndOfTheStream;
|
2006-01-20 15:34:02 +00:00
|
|
|
}
|
2013-10-12 20:59:34 +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;
|
2007-10-11 02:08:29 +00:00
|
|
|
- (BOOL)openWithDecoder:(id<CogDecoder>) d;
|
|
|
|
|
2006-01-20 15:34:02 +00:00
|
|
|
- (void)process;
|
2007-02-24 20:36:27 +00:00
|
|
|
- (NSDictionary *) properties;
|
2007-11-24 20:16:27 +00:00
|
|
|
- (void)seek:(long)frame;
|
2006-04-02 20:03:12 +00:00
|
|
|
|
2007-03-03 17:19:37 +00:00
|
|
|
- (void)registerObservers;
|
2006-01-20 15:34:02 +00:00
|
|
|
|
2007-10-11 02:08:29 +00:00
|
|
|
- (BOOL)setTrack:(NSURL *)track;
|
|
|
|
|
|
|
|
- (id<CogDecoder>) decoder;
|
|
|
|
|
2006-01-20 15:34:02 +00:00
|
|
|
@end
|