Cleaned up project settings to current defaults, except for the macOS deployment version, which is still 10.13. Cleaned up a lot of headers and such to include with angle braces instead of double quotes. Enabled build sandbox in a lot of places. Disabled subproject signing in several places, for libraries and frameworks which will be stripped and signed when they are copied into place in the final build. Also, while trying to solve compilation issues, the visualization controller was reverted to the Objective C implementation, which is probably faster anyway. Stupid Swift/Objective-C language mixing issues. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
54 lines
1.1 KiB
Objective-C
54 lines
1.1 KiB
Objective-C
//
|
|
// InputNode.h
|
|
// Cog
|
|
//
|
|
// Created by Vincent Spader on 8/2/05.
|
|
// Copyright 2005 Vincent Spader. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <AudioToolbox/AudioToolbox.h>
|
|
#import <AudioUnit/AudioUnit.h>
|
|
#import <CoreAudio/AudioHardware.h>
|
|
|
|
#import <CogAudio/AudioDecoder.h>
|
|
#import <CogAudio/Node.h>
|
|
#import <CogAudio/Plugin.h>
|
|
|
|
#define INPUT_NODE_SEEK
|
|
|
|
@interface InputNode : Node {
|
|
id<CogDecoder> decoder;
|
|
|
|
int bytesPerSample;
|
|
int bytesPerFrame;
|
|
BOOL floatingPoint;
|
|
BOOL swapEndian;
|
|
|
|
BOOL shouldSeek;
|
|
long seekFrame;
|
|
|
|
BOOL observersAdded;
|
|
|
|
Semaphore *exitAtTheEndOfTheStream;
|
|
}
|
|
@property(readonly) Semaphore * _Nonnull exitAtTheEndOfTheStream;
|
|
@property(readonly) BOOL threadExited;
|
|
|
|
- (id _Nullable)initWithController:(id _Nonnull)c previous:(id _Nullable)p;
|
|
|
|
- (BOOL)openWithSource:(id<CogSource>_Nonnull)source;
|
|
- (BOOL)openWithDecoder:(id<CogDecoder>_Nonnull)d;
|
|
|
|
- (void)process;
|
|
- (NSDictionary *_Nonnull)properties;
|
|
- (void)seek:(long)frame;
|
|
|
|
- (void)registerObservers;
|
|
|
|
- (BOOL)setTrack:(NSURL *_Nonnull)track;
|
|
|
|
- (id<CogDecoder>_Nonnull)decoder;
|
|
|
|
@end
|