this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

CoreAudio.component: Add Carbon Component Manager resource definition

+179
+140
src/CoreAudio/CoreAudioComponent/AUResources.r
··· 1 + /* 2 + File: AUResources.r 3 + Abstract: AUResources.r 4 + Version: 1.1 5 + 6 + Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple 7 + Inc. ("Apple") in consideration of your agreement to the following 8 + terms, and your use, installation, modification or redistribution of 9 + this Apple software constitutes acceptance of these terms. If you do 10 + not agree with these terms, please do not use, install, modify or 11 + redistribute this Apple software. 12 + 13 + In consideration of your agreement to abide by the following terms, and 14 + subject to these terms, Apple grants you a personal, non-exclusive 15 + license, under Apple's copyrights in this original Apple software (the 16 + "Apple Software"), to use, reproduce, modify and redistribute the Apple 17 + Software, with or without modifications, in source and/or binary forms; 18 + provided that if you redistribute the Apple Software in its entirety and 19 + without modifications, you must retain this notice and the following 20 + text and disclaimers in all such redistributions of the Apple Software. 21 + Neither the name, trademarks, service marks or logos of Apple Inc. may 22 + be used to endorse or promote products derived from the Apple Software 23 + without specific prior written permission from Apple. Except as 24 + expressly stated in this notice, no other rights or licenses, express or 25 + implied, are granted by Apple herein, including but not limited to any 26 + patent rights that may be infringed by your derivative works or by other 27 + works in which the Apple Software may be incorporated. 28 + 29 + The Apple Software is provided by Apple on an "AS IS" basis. APPLE 30 + MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION 31 + THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS 32 + FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND 33 + OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. 34 + 35 + IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL 36 + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 37 + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 38 + INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, 39 + MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED 40 + AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), 41 + STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE 42 + POSSIBILITY OF SUCH DAMAGE. 43 + 44 + Copyright (C) 2014 Apple Inc. All Rights Reserved. 45 + 46 + */ 47 + /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 48 + // AUResources.r 49 + // 50 + //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 51 + 52 + /* sample macro definitions -- all of these symbols must be defined 53 + #define RES_ID kHALOutputResID 54 + #define COMP_TYPE kAudioUnitComponentType 55 + #define COMP_SUBTYPE kAudioUnitOutputSubType 56 + #define COMP_MANUF kAudioUnitAudioHardwareOutputSubSubType 57 + #define VERSION 0x00010000 58 + #define NAME "AudioHALOutput" 59 + #define DESCRIPTION "Audio hardware output AudioUnit" 60 + #define ENTRY_POINT "AUHALEntry" 61 + */ 62 + #define UseExtendedThingResource 1 63 + 64 + #include <CoreServices/CoreServices.r> 65 + 66 + // this is a define used to indicate that a component has no static data that would mean 67 + // that no more than one instance could be open at a time - never been true for AUs 68 + #ifndef cmpThreadSafeOnMac 69 + #define cmpThreadSafeOnMac 0x10000000 70 + #endif 71 + 72 + //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 + 74 + resource 'STR ' (RES_ID, purgeable) { 75 + NAME 76 + }; 77 + 78 + resource 'STR ' (RES_ID + 1, purgeable) { 79 + DESCRIPTION 80 + }; 81 + 82 + resource 'dlle' (RES_ID) { 83 + ENTRY_POINT 84 + }; 85 + 86 + //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 87 + 88 + resource 'thng' (RES_ID, NAME) { 89 + COMP_TYPE, 90 + COMP_SUBTYPE, 91 + COMP_MANUF, 92 + 0, 0, 0, 0, // no 68K 93 + 'STR ', RES_ID, 94 + 'STR ', RES_ID + 1, 95 + 0, 0, /* icon */ 96 + VERSION, 97 + componentHasMultiplePlatforms | componentDoAutoVersion, 98 + 0, 99 + { 100 + #if defined(ppc_YES) 101 + cmpThreadSafeOnMac, 102 + 'dlle', RES_ID, platformPowerPCNativeEntryPoint 103 + #define NeedLeadingComma 1 104 + #endif 105 + #if defined(ppc64_YES) 106 + #if defined(NeedLeadingComma) 107 + , 108 + #endif 109 + cmpThreadSafeOnMac, 110 + 'dlle', RES_ID, platformPowerPC64NativeEntryPoint 111 + #define NeedLeadingComma 1 112 + #endif 113 + #if defined(i386_YES) 114 + #if defined(NeedLeadingComma) 115 + , 116 + #endif 117 + cmpThreadSafeOnMac, 118 + 'dlle', RES_ID, platformIA32NativeEntryPoint 119 + #define NeedLeadingComma 1 120 + #endif 121 + #if defined(x86_64_YES) 122 + #if defined(NeedLeadingComma) 123 + , 124 + #endif 125 + cmpThreadSafeOnMac, 126 + 'dlle', RES_ID, 8 127 + #define NeedLeadingComma 1 128 + #endif 129 + } 130 + }; 131 + 132 + #undef RES_ID 133 + #undef COMP_TYPE 134 + #undef COMP_SUBTYPE 135 + #undef COMP_MANUF 136 + #undef VERSION 137 + #undef NAME 138 + #undef DESCRIPTION 139 + #undef ENTRY_POINT 140 + #undef NeedLeadingComma
+1
src/CoreAudio/CoreAudioComponent/CMakeLists.txt
··· 43 43 set_target_properties(CoreAudioComponent PROPERTIES OUTPUT_NAME "CoreAudio" PREFIX "" SUFFIX "") 44 44 install(TARGETS CoreAudioComponent DESTINATION libexec/darling/System/Library/Components/CoreAudio.component/Contents/MacOS) 45 45 install(FILES Info.plist DESTINATION libexec/darling/System/Library/Components/CoreAudio.component/Contents) 46 + install(FILES CoreAudio.rsrc DESTINATION libexec/darling/System/Library/Components/CoreAudio.component/Contents/Resources)
src/CoreAudio/CoreAudioComponent/CoreAudio.rsrc

This is a binary file and will not be displayed.

+38
src/CoreAudio/CoreAudioComponent/CoreAudioComponent.r
··· 1 + #include <AudioUnit/AudioUnit.r> 2 + 3 + #define kAudioUnitResID_AUHAL 1000 4 + #define kAudioUnitResID_DefaultOutputAU 1003 5 + #define kAudioUnitResID_SystemOutputAU 1006 6 + //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AUHAL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 + #define RES_ID kAudioUnitResID_AUHAL 8 + #define COMP_TYPE kAudioUnitType_Output 9 + #define COMP_SUBTYPE kAudioUnitSubType_HALOutput 10 + #define COMP_MANUF kAudioUnitManufacturer_Apple 11 + #define VERSION 1 12 + #define NAME "Darling: AudioDeviceOutput" 13 + #define DESCRIPTION "AudioDevice interface output unit" 14 + #define ENTRY_POINT "AUHALEntry" 15 + #include "AUResources.r" 16 + 17 + //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DefaultOutputAU ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 18 + #define RES_ID kAudioUnitResID_DefaultOutputAU 19 + #define COMP_TYPE kAudioUnitType_Output 20 + #define COMP_SUBTYPE kAudioUnitSubType_DefaultOutput 21 + #define COMP_MANUF kAudioUnitManufacturer_Apple 22 + #define VERSION 1 23 + #define NAME "Darling: DefaultOutputUnit" 24 + #define DESCRIPTION "Default output unit that redirects its output to the user selected default device" 25 + #define ENTRY_POINT "DefaultOutputAUEntry" 26 + #include "AUResources.r" 27 + 28 + //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SystemOutputAU ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 29 + #define RES_ID kAudioUnitResID_SystemOutputAU 30 + #define COMP_TYPE kAudioUnitType_Output 31 + #define COMP_SUBTYPE kAudioUnitSubType_SystemOutput 32 + #define COMP_MANUF kAudioUnitManufacturer_Apple 33 + #define VERSION 1 34 + #define NAME "Darling: SystemOutputUnit" 35 + #define DESCRIPTION "System Sounds output unit that redirects its output to the user selected System Sounds device" 36 + #define ENTRY_POINT "SystemOutputAUEntry" 37 + #include "AUResources.r" 38 +