Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
3.9KB

  1. //------------------------------------------------------------------------
  2. // Project : VST SDK
  3. //
  4. // Category : Helpers
  5. // Filename : public.sdk/source/vst/auwrapper/auresource.r
  6. // Created by : Steinberg, 12/2007
  7. // Description : VST 3 -> AU Wrapper
  8. //
  9. //-----------------------------------------------------------------------------
  10. // LICENSE
  11. // (c) 2017, Steinberg Media Technologies GmbH, All Rights Reserved
  12. //-----------------------------------------------------------------------------
  13. // Redistribution and use in source and binary forms, with or without modification,
  14. // are permitted provided that the following conditions are met:
  15. //
  16. // * Redistributions of source code must retain the above copyright notice,
  17. // this list of conditions and the following disclaimer.
  18. // * Redistributions in binary form must reproduce the above copyright notice,
  19. // this list of conditions and the following disclaimer in the documentation
  20. // and/or other materials provided with the distribution.
  21. // * Neither the name of the Steinberg Media Technologies nor the names of its
  22. // contributors may be used to endorse or promote products derived from this
  23. // software without specific prior written permission.
  24. //
  25. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  26. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  27. // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  28. // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  29. // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  30. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  32. // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
  33. // OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  34. // OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //-----------------------------------------------------------------------------
  36. #include <AudioUnit/AudioUnit.r>
  37. #include <AudioUnit/AudioUnitCarbonView.r>
  38. #include "audiounitconfig.h"
  39. /* ----------------------------------------------------------------------------------------------------------------------------------------
  40. // audiounitconfig.h needs the following definitions:
  41. #define kAudioUnitVersion 0xFFFFFFFF // Version Number, needs to be in hex
  42. #define kAudioUnitName "Steinberg: MyVST3 as AudioUnit" // Company Name + Effect Name
  43. #define kAudioUnitDescription "My VST3 as AudioUnit" // Effect Description
  44. #define kAudioUnitType kAudioUnitType_Effect // can be kAudioUnitType_Effect or kAudioUnitType_MusicDevice
  45. #define kAudioUnitComponentSubType 'test' // unique id
  46. #define kAudioUnitComponentManuf 'SMTG' // registered company id
  47. #define kAudioUnitCarbonView 1 // if 0 no Carbon view support will be added
  48. */
  49. #define kAudioUnitResID_Processor 1000
  50. #define kAudioUnitResID_CarbonView 9000
  51. //----------------------Processor----------------------------------------------
  52. #define RES_ID kAudioUnitResID_Processor
  53. #define COMP_TYPE kAudioUnitType
  54. #define COMP_SUBTYPE kAudioUnitComponentSubType
  55. #define COMP_MANUF kAudioUnitComponentManuf
  56. #define VERSION kAudioUnitVersion
  57. #define NAME kAudioUnitName
  58. #define DESCRIPTION kAudioUnitDescription
  59. #define ENTRY_POINT "AUWrapperEntry"
  60. #include "AUResources.r"
  61. #if kAudioUnitCarbonView
  62. //----------------------View----------------------------------------------
  63. #define RES_ID kAudioUnitResID_CarbonView
  64. #define COMP_TYPE kAudioUnitCarbonViewComponentType
  65. #define COMP_SUBTYPE kAudioUnitComponentSubType
  66. #define COMP_MANUF kAudioUnitComponentManuf
  67. #define VERSION kAudioUnitVersion
  68. #define NAME "CarbonView"
  69. #define DESCRIPTION "CarbonView"
  70. #define ENTRY_POINT "AUCarbonViewEntry"
  71. #include "AUResources.r"
  72. #endif