48 lines
791 B
Objective-C
48 lines
791 B
Objective-C
//
|
|
// SoundController.h
|
|
// Cog
|
|
//
|
|
// Created by Zaphod Beeblebrox on 8/7/05.
|
|
// Copyright 2005 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "BufferChain.h"
|
|
#import "OutputNode.h"
|
|
|
|
@class BufferChain;
|
|
@class OutputNode;
|
|
|
|
@interface SoundController : NSObject {
|
|
BufferChain *bufferChain;
|
|
OutputNode *output;
|
|
|
|
NSMutableArray *chainQueue;
|
|
|
|
NSString *nextSong; //Updated whenever the playlist changes?
|
|
|
|
id delegate;
|
|
}
|
|
|
|
- (OutputNode *) output;
|
|
- (BufferChain *) bufferChain;
|
|
- (id)initWithDelegate:(id)d;
|
|
|
|
- (void)play:(NSString *)filename;
|
|
- (void)stop;
|
|
- (void)pause;
|
|
- (void)resume;
|
|
|
|
- (void)seekToTime:(double)time;
|
|
- (void)setVolume:(double)v;
|
|
|
|
- (double)amountPlayed;
|
|
|
|
|
|
- (void)setNextSong:(NSString *)s;
|
|
- (void)setPlaybackStatus:(int)s;
|
|
|
|
|
|
@end
|