2022-01-16 15:32:47 +00:00
|
|
|
//
|
|
|
|
// AUPlayerView.h
|
|
|
|
// Output
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 1/29/16.
|
|
|
|
// Copyright © 2016-2022 Christopher Snowhill. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __AUPlayerView_h__
|
|
|
|
#define __AUPlayerView_h__
|
|
|
|
|
|
|
|
#import <AppKit/AppKit.h>
|
2022-01-17 14:37:38 +00:00
|
|
|
#import <AudioToolbox/AudioToolbox.h>
|
2022-02-07 05:49:27 +00:00
|
|
|
#import <AudioUnit/AudioUnit.h>
|
|
|
|
#import <AudioUnit/AudioUnitCarbonView.h>
|
2022-01-16 15:32:47 +00:00
|
|
|
|
2022-01-19 09:23:59 +00:00
|
|
|
void equalizerApplyGenre(AudioUnit au, NSString *genre);
|
2022-01-18 04:43:08 +00:00
|
|
|
void equalizerLoadPreset(AudioUnit au);
|
2022-02-07 05:49:27 +00:00
|
|
|
void equalizerApplyPreset(AudioUnit au, NSDictionary *preset);
|
|
|
|
|
|
|
|
@interface AUPluginUI : NSObject {
|
|
|
|
AudioUnit au;
|
|
|
|
|
|
|
|
BOOL windowOpen;
|
|
|
|
|
|
|
|
/* Cocoa */
|
|
|
|
|
|
|
|
NSWindow *cocoa_window;
|
|
|
|
NSView *au_view;
|
|
|
|
NSRect last_au_frame;
|
2022-01-16 15:32:47 +00:00
|
|
|
}
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (id)initWithSampler:(AudioUnit)_au bringToFront:(BOOL)front orWindowNumber:(NSInteger)window;
|
|
|
|
- (void)dealloc;
|
2022-01-16 15:32:47 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (BOOL)isOpen;
|
2022-01-16 15:32:47 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)bringToFront;
|
2022-01-16 15:32:47 +00:00
|
|
|
|
2022-01-17 09:22:15 +00:00
|
|
|
@end
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
@interface AUPluginWindow : NSWindow <NSSplitViewDelegate> {
|
|
|
|
AudioUnit au;
|
|
|
|
AUParameterListenerRef listenerRef;
|
|
|
|
|
|
|
|
NSView *topView;
|
|
|
|
NSView *auView;
|
|
|
|
NSSplitView *splitView;
|
|
|
|
NSPopUpButton *presetButton;
|
2022-01-17 09:22:15 +00:00
|
|
|
}
|
2022-01-16 15:32:47 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (id)initWithAuView:(NSView *)_auView withAu:(AudioUnit)au bringToFront:(BOOL)front relativeToWindow:(NSInteger)window;
|
2022-01-16 15:32:47 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|