Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/Classes/AUViewWindowController.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (show annotations) (download) (as text)
Wed Oct 18 14:38:52 2017 UTC (6 years, 7 months ago) by toshinagata1964
File MIME type: text/x-chdr
File size: 1666 byte(s)
Audio effect window is now working.
1 //
2 // AUViewWindowController.h
3 // Alchemusica
4 //
5 // Created by Toshi Nagata on 10/06/26.
6 // Copyright 2010-2011 Toshi Nagata. All rights reserved.
7 //
8 /*
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation version 2 of the License.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 */
18
19 #if defined(__LP64__) && __LP64__
20 #define USE_CARBON 0
21 #else
22 #define USE_CARBON 1
23 #endif
24
25 #import <Cocoa/Cocoa.h>
26 #import <AudioUnit/AudioUnit.h>
27 #import <AudioUnit/AudioUnitCarbonView.h>
28
29 @interface AUViewWindowController : NSWindowController <NSWindowDelegate> {
30 @public
31 BOOL isProcessingCarbonEventHandler; // True while processing carbon event
32 @protected
33 AudioUnit audioUnit;
34 #if USE_CARBON
35 AudioUnitCarbonView auCarbonView;
36 #endif
37 ComponentDescription viewCD;
38 id _delegate;
39 NSSize defaultViewSize;
40
41 #if USE_CARBON
42 WindowRef carbonWindowRef;
43 #endif
44 }
45 + (AUViewWindowController *)windowControllerForAudioUnit:(AudioUnit)unit cocoaView:(BOOL)cocoaView delegate:(id)delegate;
46 - (id)initWithAudioUnit:(AudioUnit)unit cocoaView:(BOOL)cocoaView delegate:(id)delegate;
47 - (AudioUnit)audioUnit;
48 + (BOOL)error:(NSString *)errString status:(OSStatus)err;
49 + (NSView *)getCocoaViewForAudioUnit:(AudioUnit)unit defaultViewSize:(NSSize)viewSize;
50 @end
51
52 @interface NSObject (AUViewWindowControllerProtocol)
53 - (void)auViewWindowWillClose: (id)auViewWindowController;
54 @end

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26