cog/Audio/Chain/BufferChain.h

59 lines
1.1 KiB
C
Raw Normal View History

2006-01-20 15:34:02 +00:00
//
// BufferChain.h
2006-01-20 15:34:02 +00:00
// CogNew
//
// Created by Vincent Spader on 1/4/06.
// Copyright 2006 Vincent Spader. All rights reserved.
2006-01-20 15:34:02 +00:00
//
#import <Cocoa/Cocoa.h>
#import "InputNode.h"
#import "ConverterNode.h"
#import "AudioPlayer.h"
2006-01-20 15:34:02 +00:00
@interface BufferChain : NSObject {
InputNode *inputNode;
ConverterNode *converterNode;
2006-04-13 02:51:22 +00:00
NSURL *streamURL;
id userInfo;
2006-01-20 15:34:02 +00:00
id finalNode; //Final buffer in the chain.
id controller;
2006-01-20 15:34:02 +00:00
}
- (id)initWithController:(id)c;
- (void)buildChain;
- (BOOL)open:(NSURL *)url withOutputFormat:(AudioStreamBasicDescription)outputFormat;
//Used when changing tracks to reuse the same decoder
- (BOOL)openWithInput:(InputNode *)i withOutputFormat:(AudioStreamBasicDescription)outputFormat;
2006-04-02 20:03:12 +00:00
- (void)seek:(double)time;
2006-01-20 15:34:02 +00:00
- (void)launchThreads;
- (InputNode *)inputNode;
2006-01-20 15:34:02 +00:00
- (id)finalNode;
- (id)userInfo;
- (void)setUserInfo:(id)i;
- (NSURL *)streamURL;
- (void)setStreamURL:(NSURL *)url;
- (void)setShouldContinue:(BOOL)s;
- (void)initialBufferFilled:(id)sender;
- (BOOL)endOfInputReached;
- (BOOL)setTrack:(NSURL *)track;
- (void)inputFormatDidChange:(AudioStreamBasicDescription)format;
2006-01-20 15:34:02 +00:00
@end