cog/Window/AUPlayerView.h

56 lines
1.1 KiB
C
Raw Normal View History

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>
#import <AudioUnit/AudioUnit.h>
#import <AudioUnit/AudioUnitCarbonView.h>
2022-01-16 15:32:47 +00:00
void equalizerApplyGenre(AudioUnit au, NSString *genre);
void equalizerLoadPreset(AudioUnit au);
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
}
- (id)initWithSampler:(AudioUnit)_au bringToFront:(BOOL)front orWindowNumber:(NSInteger)window;
- (void)dealloc;
2022-01-16 15:32:47 +00:00
- (BOOL)isOpen;
2022-01-16 15:32:47 +00:00
- (void)bringToFront;
2022-01-16 15:32:47 +00:00
@end
@interface AUPluginWindow : NSWindow <NSSplitViewDelegate> {
AudioUnit au;
AUParameterListenerRef listenerRef;
NSView *topView;
NSView *auView;
NSSplitView *splitView;
NSPopUpButton *presetButton;
}
2022-01-16 15:32:47 +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