cog/Audio/Chain/BufferChain.h

47 lines
771 B
Objective-C

//
// BufferChain.h
// CogNew
//
// Created by Vincent Spader on 1/4/06.
// Copyright 2006 Vincent Spader. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "InputNode.h"
#import "ConverterNode.h"
#import "AudioPlayer.h"
@interface BufferChain : NSObject {
InputNode *inputNode;
ConverterNode *converterNode;
NSURL *streamURL;
id userInfo;
id finalNode; //Final buffer in the chain.
id controller;
}
- (id)initWithController:(id)c;
- (void)buildChain;
- (BOOL)open:(NSURL *)url withOutputFormat:(AudioStreamBasicDescription)outputFormat;
- (void)seek:(double)time;
- (void)launchThreads;
- (id)finalNode;
- (id)userInfo;
- (void)setUserInfo:(id)i;
- (NSURL *)streamURL;
- (void)setShouldContinue:(BOOL)s;
- (void)endOfInputReached;
@end