cog/Audio/Chain/OutputNode.h

78 lines
1.4 KiB
C
Raw Normal View History

2006-01-20 15:34:02 +00:00
//
// OutputNode.h
2006-01-20 15:34:02 +00:00
// Cog
//
// 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>
#import <CoreAudio/AudioHardware.h>
2006-01-20 15:34:02 +00:00
#import "Node.h"
#import "OutputAVFoundation.h"
2006-01-20 15:34:02 +00:00
@interface OutputNode : Node {
AudioStreamBasicDescription format;
uint32_t config;
double amountPlayed;
double amountPlayedInterval;
OutputAVFoundation *output;
BOOL paused;
BOOL started;
BOOL intervalReported;
2006-01-20 15:34:02 +00:00
}
2022-01-16 15:32:47 +00:00
- (void)beginEqualizer:(AudioUnit)eq;
- (void)refreshEqualizer:(AudioUnit)eq;
2022-01-16 15:32:47 +00:00
- (void)endEqualizer:(AudioUnit)eq;
- (double)amountPlayed;
- (double)amountPlayedInterval;
- (void)incrementAmountPlayed:(double)seconds;
- (void)resetAmountPlayed;
- (void)resetAmountPlayedInterval;
- (BOOL)selectNextBuffer;
- (void)endOfInputPlayed;
- (BOOL)chainQueueHasTracks;
- (double)secondsBuffered;
2006-01-20 15:34:02 +00:00
- (void)setup;
- (void)process;
- (void)close;
2006-04-02 20:03:12 +00:00
- (void)seek:(double)time;
2006-01-20 15:34:02 +00:00
- (double)latency;
- (AudioChunk *)readChunk:(size_t)amount;
2006-01-20 15:34:02 +00:00
- (void)setFormat:(AudioStreamBasicDescription *)f channelConfig:(uint32_t)channelConfig;
- (AudioStreamBasicDescription)format;
- (uint32_t)config;
2006-01-20 15:34:02 +00:00
- (void)setVolume:(double)v;
2006-01-20 15:34:02 +00:00
- (void)setShouldContinue:(BOOL)s;
- (void)setShouldPlayOutBuffer:(BOOL)s;
- (void)pause;
- (void)resume;
- (BOOL)isPaused;
2022-01-19 10:08:57 +00:00
- (void)sustainHDCD;
- (void)restartPlaybackAtCurrentPosition;
2006-01-20 15:34:02 +00:00
@end