home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Documentation / develop / develop Issue 20 / develop 20 code / Sound Components / NoiseMaker / NoiseMaker.r < prev    next >
Encoding:
Text File  |  1994-09-08  |  1.9 KB  |  64 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        NoiseMaker.r
  3.  
  4.     Contains:    Sample sound output component resources
  5.  
  6.     Written by:    Kip Olson
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc.
  9. */
  10.  
  11. #define UseExtendedThingResource    1                    // we are going to use the extended component resource
  12.  
  13. #include "SysTypes.r"
  14. #include "Types.r"
  15.  
  16. #define NoiseMakerVersion        0x00010000                // version of NoiseMaker component
  17. #define NoiseMakerComponentID    128                        // resource ID for NoiseMaker component
  18.  
  19.  
  20. resource 'thng' (NoiseMakerComponentID, purgeable) {    // component resource
  21.     'sdev',                                                // sound output component type
  22.     'NOIS',                                                // subtype of this component
  23.     'appl',                                                // manufacturer
  24.     cmpWantsRegisterMessage, kAnyComponentFlagsMask,    // component flags
  25.     'proc',    NoiseMakerComponentID,                        // code resource
  26.     'STR ',    NoiseMakerComponentID,                        // component name
  27.     'STR ',    NoiseMakerComponentID+1,                    // component description
  28.     'ICON',    NoiseMakerComponentID,                        // component icon
  29.     NoiseMakerVersion,                                    // component version
  30.     componentDoAutoVersion,                                // registration flags
  31.     0,                                                    // icon family ID
  32.     {    /* array ComponentPlatformInfo: 0 elements */    // platform
  33.     }
  34. };
  35.  
  36. resource 'STR ' (NoiseMakerComponentID, purgeable) {    // component name
  37.     "NoiseMaker"
  38. };
  39.  
  40. resource 'STR ' (NoiseMakerComponentID+1, purgeable) {    // component description
  41.     "NoiseMaker -- an example sound output component."
  42. };
  43.  
  44. resource 'ICON' (NoiseMakerComponentID, purgeable) {    // component icon
  45.     $"0000 0000 0000 0000 0000 0000 0000 0300"
  46.     $"0000 0480 0000 0900 0000 1080 0000 2040"
  47.     $"0000 2120 0000 4118 0000 400C 0000 800C"
  48.     $"0001 0078 0003 0360 0007 04A3 000E 0460"
  49.     $"001E 3804 003C 3812 1878 3810 2484 1800"
  50.     $"4904 0800 5104 8800 5204 8800 5224 8800"
  51.     $"5424 8800 4824 8800 4022 C400 2041 2200"
  52.     $"1FFE 1C"
  53. };
  54.  
  55. resource 'vers' (1) {                                    // Finder version info
  56.     0x1,
  57.     0x0,
  58.     release,
  59.     0x0,
  60.     verUS,
  61.     "NoiseMaker 1.0",
  62.     "NoiseMaker 1.0\n© 1994 Apple Computer, Inc."
  63. };
  64.