2006-01-20 15:34:02 +00:00
|
|
|
//
|
2006-04-02 15:44:08 +00:00
|
|
|
// OutputNode.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 <AudioToolbox/AudioToolbox.h>
|
|
|
|
#import <AudioUnit/AudioUnit.h>
|
2022-02-07 05:49:27 +00:00
|
|
|
#import <CoreAudio/AudioHardware.h>
|
2006-01-20 15:34:02 +00:00
|
|
|
|
|
|
|
#import "Node.h"
|
2022-06-24 06:17:31 +00:00
|
|
|
#import "OutputAVFoundation.h"
|
2006-01-20 15:34:02 +00:00
|
|
|
|
|
|
|
@interface OutputNode : Node {
|
|
|
|
AudioStreamBasicDescription format;
|
2022-02-07 08:56:05 +00:00
|
|
|
uint32_t config;
|
2022-02-07 05:49:27 +00:00
|
|
|
|
2022-01-13 07:17:07 +00:00
|
|
|
double amountPlayed;
|
2022-06-19 06:00:08 +00:00
|
|
|
double amountPlayedInterval;
|
2022-06-24 06:17:31 +00:00
|
|
|
OutputAVFoundation *output;
|
2022-02-07 05:49:27 +00:00
|
|
|
|
|
|
|
BOOL paused;
|
|
|
|
BOOL started;
|
2022-06-19 06:00:08 +00:00
|
|
|
BOOL intervalReported;
|
2006-01-20 15:34:02 +00:00
|
|
|
}
|
|
|
|
|
2022-01-16 15:32:47 +00:00
|
|
|
- (void)beginEqualizer:(AudioUnit)eq;
|
2022-01-18 04:43:08 +00:00
|
|
|
- (void)refreshEqualizer:(AudioUnit)eq;
|
2022-01-16 15:32:47 +00:00
|
|
|
- (void)endEqualizer:(AudioUnit)eq;
|
|
|
|
|
2006-04-02 15:44:08 +00:00
|
|
|
- (double)amountPlayed;
|
2022-06-19 06:00:08 +00:00
|
|
|
- (double)amountPlayedInterval;
|
2006-04-02 15:44:08 +00:00
|
|
|
|
2022-02-06 11:08:34 +00:00
|
|
|
- (void)incrementAmountPlayed:(double)seconds;
|
2022-01-15 06:46:41 +00:00
|
|
|
- (void)resetAmountPlayed;
|
2022-06-19 06:00:08 +00:00
|
|
|
- (void)resetAmountPlayedInterval;
|
2022-01-15 06:46:41 +00:00
|
|
|
|
2022-06-24 06:17:31 +00:00
|
|
|
- (BOOL)selectNextBuffer;
|
2022-01-15 06:46:41 +00:00
|
|
|
- (void)endOfInputPlayed;
|
2022-01-15 10:09:26 +00:00
|
|
|
|
|
|
|
- (BOOL)chainQueueHasTracks;
|
2022-01-15 06:46:41 +00:00
|
|
|
|
|
|
|
- (double)secondsBuffered;
|
|
|
|
|
2006-01-20 15:34:02 +00:00
|
|
|
- (void)setup;
|
|
|
|
- (void)process;
|
2006-04-02 15:44:08 +00:00
|
|
|
- (void)close;
|
2006-04-02 20:03:12 +00:00
|
|
|
- (void)seek:(double)time;
|
2006-01-20 15:34:02 +00:00
|
|
|
|
2022-02-06 11:08:34 +00:00
|
|
|
- (AudioChunk *)readChunk:(size_t)amount;
|
2006-01-20 15:34:02 +00:00
|
|
|
|
2022-02-07 08:56:05 +00:00
|
|
|
- (void)setFormat:(AudioStreamBasicDescription *)f channelConfig:(uint32_t)channelConfig;
|
2022-02-07 05:49:27 +00:00
|
|
|
- (AudioStreamBasicDescription)format;
|
2022-02-07 08:56:05 +00:00
|
|
|
- (uint32_t)config;
|
2006-01-20 15:34:02 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)setVolume:(double)v;
|
2006-01-20 15:34:02 +00:00
|
|
|
|
2007-02-24 20:36:27 +00:00
|
|
|
- (void)setShouldContinue:(BOOL)s;
|
|
|
|
|
|
|
|
- (void)pause;
|
|
|
|
- (void)resume;
|
|
|
|
|
2013-10-21 05:04:09 +00:00
|
|
|
- (BOOL)isPaused;
|
|
|
|
|
2022-01-19 10:08:57 +00:00
|
|
|
- (void)sustainHDCD;
|
|
|
|
|
2022-02-08 06:44:56 +00:00
|
|
|
- (void)restartPlaybackAtCurrentPosition;
|
|
|
|
|
2006-01-20 15:34:02 +00:00
|
|
|
@end
|