Updated docs
[supercollider.git] / platform / mac / SuperColliderAU / AUSDK / AUResources.r
bloba5b1ec723b877aa900713976a35b05daa4e38d3e
1 /* Copyright © 2007 Apple Inc. All Rights Reserved.
3 Disclaimer: IMPORTANT: This Apple software is supplied to you by
4 Apple Inc. ("Apple") in consideration of your agreement to the
5 following terms, and your use, installation, modification or
6 redistribution of this Apple software constitutes acceptance of these
7 terms. If you do not agree with these terms, please do not use,
8 install, modify or redistribute this Apple software.
10 In consideration of your agreement to abide by the following terms, and
11 subject to these terms, Apple grants you a personal, non-exclusive
12 license, under Apple's copyrights in this original Apple software (the
13 "Apple Software"), to use, reproduce, modify and redistribute the Apple
14 Software, with or without modifications, in source and/or binary forms;
15 provided that if you redistribute the Apple Software in its entirety and
16 without modifications, you must retain this notice and the following
17 text and disclaimers in all such redistributions of the Apple Software.
18 Neither the name, trademarks, service marks or logos of Apple Inc.
19 may be used to endorse or promote products derived from the Apple
20 Software without specific prior written permission from Apple. Except
21 as expressly stated in this notice, no other rights or licenses, express
22 or implied, are granted by Apple herein, including but not limited to
23 any patent rights that may be infringed by your derivative works or by
24 other works in which the Apple Software may be incorporated.
26 The Apple Software is provided by Apple on an "AS IS" basis. APPLE
27 MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
28 THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
29 FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
30 OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
32 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
33 OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35 INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
36 MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
37 AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
38 STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
39 POSSIBILITY OF SUCH DAMAGE.
41 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42 // AUResources.r
44 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
46 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47 // AUResources.r
49 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
51 /* sample macro definitions -- all of these symbols must be defined
52 #define RES_ID kHALOutputResID
53 #define COMP_TYPE kAudioUnitComponentType
54 #define COMP_SUBTYPE kAudioUnitOutputSubType
55 #define COMP_MANUF kAudioUnitAudioHardwareOutputSubSubType
56 #define VERSION 0x00010000
57 #define NAME "AudioHALOutput"
58 #define DESCRIPTION "Audio hardware output AudioUnit"
59 #define ENTRY_POINT "AUHALEntry"
61 #define UseExtendedThingResource 1
63 #include <CoreServices/CoreServices.r>
65 // this is a define used to indicate that a component has no static data that would mean
66 // that no more than one instance could be open at a time - never been true for AUs
67 #ifndef cmpThreadSafeOnMac
68 #define cmpThreadSafeOnMac 0x10000000
69 #endif
71 #undef TARGET_REZ_MAC_PPC
72 #ifdef ppc_YES
73 #define TARGET_REZ_MAC_PPC 1
74 #else
75 #define TARGET_REZ_MAC_PPC 0
76 #endif
78 #undef TARGET_REZ_MAC_X86
79 #ifdef i386_YES
80 #define TARGET_REZ_MAC_X86 1
81 #else
82 #define TARGET_REZ_MAC_X86 0
83 #endif
85 #if TARGET_OS_MAC
86 #if TARGET_REZ_MAC_PPC && TARGET_REZ_MAC_X86
87 #define TARGET_REZ_FAT_COMPONENTS 1
88 #define Target_PlatformType platformPowerPCNativeEntryPoint
89 #define Target_SecondPlatformType platformIA32NativeEntryPoint
90 #elif TARGET_REZ_MAC_X86
91 #define Target_PlatformType platformIA32NativeEntryPoint
92 #else
93 #define Target_PlatformType platformPowerPCNativeEntryPoint
94 #endif
95 #define Target_CodeResType 'dlle'
96 #define TARGET_REZ_USE_DLLE 1
97 #else
98 #error get a real platform type
99 #endif // not TARGET_OS_MAC
101 #ifndef TARGET_REZ_FAT_COMPONENTS
102 #define TARGET_REZ_FAT_COMPONENTS 0
103 #endif
105 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
107 resource 'STR ' (RES_ID, purgeable) {
108 NAME
111 resource 'STR ' (RES_ID + 1, purgeable) {
112 DESCRIPTION
115 resource 'dlle' (RES_ID) {
116 ENTRY_POINT
119 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
121 resource 'thng' (RES_ID, NAME) {
122 COMP_TYPE,
123 COMP_SUBTYPE,
124 COMP_MANUF,
125 0, 0, 0, 0, // no 68K
126 'STR ', RES_ID,
127 'STR ', RES_ID + 1,
128 0, 0, /* icon */
129 VERSION,
130 componentHasMultiplePlatforms | componentDoAutoVersion,
133 cmpThreadSafeOnMac,
134 Target_CodeResType, RES_ID,
135 Target_PlatformType,
136 #if TARGET_REZ_FAT_COMPONENTS
137 cmpThreadSafeOnMac,
138 Target_CodeResType, RES_ID,
139 Target_SecondPlatformType,
140 #endif
144 #undef RES_ID
145 #undef COMP_TYPE
146 #undef COMP_SUBTYPE
147 #undef COMP_MANUF
148 #undef VERSION
149 #undef NAME
150 #undef DESCRIPTION
151 #undef ENTRY_POINT