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>
|
|
|
|
#import <AudioUnit/AudioUnitCarbonView.h>
|
|
|
|
#import <AudioUnit/AudioUnit.h>
|
2022-01-17 14:37:38 +00:00
|
|
|
#import <AudioToolbox/AudioToolbox.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);
|
|
|
|
void equalizerApplyPreset(AudioUnit au, NSDictionary * preset);
|
|
|
|
|
2022-01-16 15:32:47 +00:00
|
|
|
@interface AUPluginUI : NSObject
|
|
|
|
{
|
|
|
|
AudioUnit au;
|
|
|
|
|
|
|
|
BOOL windowOpen;
|
|
|
|
|
|
|
|
/* Cocoa */
|
|
|
|
|
|
|
|
NSWindow* cocoa_window;
|
|
|
|
NSView* au_view;
|
|
|
|
NSRect last_au_frame;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithSampler:(AudioUnit)_au bringToFront:(BOOL)front orWindowNumber:(NSInteger)window;
|
|
|
|
- (void) dealloc;
|
|
|
|
|
|
|
|
- (BOOL) isOpen;
|
|
|
|
|
|
|
|
- (void) bringToFront;
|
|
|
|
|
2022-01-17 09:22:15 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface AUPluginWindow : NSWindow<NSSplitViewDelegate> {
|
2022-01-17 14:37:38 +00:00
|
|
|
AudioUnit au;
|
|
|
|
AUParameterListenerRef listenerRef;
|
|
|
|
|
2022-01-17 09:22:15 +00:00
|
|
|
NSView *topView;
|
|
|
|
NSView *auView;
|
|
|
|
NSSplitView *splitView;
|
2022-01-17 14:37:38 +00:00
|
|
|
NSPopUpButton * presetButton;
|
2022-01-17 09:22:15 +00:00
|
|
|
}
|
2022-01-16 15:32:47 +00:00
|
|
|
|
2022-01-17 14:37:38 +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
|