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.

96 lines
3.7KB

  1. //------------------------------------------------------------------------
  2. // Project : VST SDK
  3. // Version : 3.6.7
  4. //
  5. // Category : Interfaces
  6. // Filename : pluginterfaces/vst/ivstmessage.h
  7. // Created by : Steinberg, 04/2005
  8. // Description : VST Message Interfaces
  9. //
  10. //-----------------------------------------------------------------------------
  11. // This file is part of a Steinberg SDK. It is subject to the license terms
  12. // in the LICENSE file found in the top-level directory of this distribution
  13. // and at www.steinberg.net/sdklicenses.
  14. // No part of the SDK, including this file, may be copied, modified, propagated,
  15. // or distributed except according to the terms contained in the LICENSE file.
  16. //-----------------------------------------------------------------------------
  17. #pragma once
  18. #include "pluginterfaces/vst/ivstattributes.h"
  19. //------------------------------------------------------------------------
  20. #include "pluginterfaces/base/falignpush.h"
  21. //------------------------------------------------------------------------
  22. //------------------------------------------------------------------------
  23. namespace Steinberg {
  24. namespace Vst {
  25. //------------------------------------------------------------------------
  26. /** Private Plug-in message.
  27. \ingroup vstIHost vst300
  28. - [host imp]
  29. - [create via IHostApplication::createInstance]
  30. - [released: 3.0.0]
  31. Messages are sent from a VST-controller component to a VST-editor component and vice versa.
  32. \see IAttributeList, IConnectionPoint, \ref vst3Communication */
  33. //------------------------------------------------------------------------
  34. class IMessage: public FUnknown
  35. {
  36. public:
  37. //------------------------------------------------------------------------
  38. /** Returns the message ID (for example "TextMessage"). */
  39. virtual FIDString PLUGIN_API getMessageID () = 0;
  40. /** Sets a message ID (for example "TextMessage"). */
  41. virtual void PLUGIN_API setMessageID (FIDString id /*in*/) = 0;
  42. /** Returns the attribute list associated to the message. */
  43. virtual IAttributeList* PLUGIN_API getAttributes () = 0;
  44. //------------------------------------------------------------------------
  45. static const FUID iid;
  46. };
  47. DECLARE_CLASS_IID (IMessage, 0x936F033B, 0xC6C047DB, 0xBB0882F8, 0x13C1E613)
  48. //------------------------------------------------------------------------
  49. /** Connect a component with another one.
  50. \ingroup vstIPlug vst300
  51. - [plug imp]
  52. - [host imp]
  53. - [released: 3.0.0]
  54. This interface is used for the communication of separate components.
  55. Note that some hosts will place a proxy object between the components so that they are not directly connected.
  56. \see \ref vst3Communication*/
  57. //------------------------------------------------------------------------
  58. class IConnectionPoint: public FUnknown
  59. {
  60. public:
  61. //------------------------------------------------------------------------
  62. /** Connects this instance with another connection point. */
  63. virtual tresult PLUGIN_API connect (IConnectionPoint* other) = 0;
  64. /** Disconnects a given connection point from this. */
  65. virtual tresult PLUGIN_API disconnect (IConnectionPoint* other) = 0;
  66. /** Called when a message has been sent from the connection point to this. */
  67. virtual tresult PLUGIN_API notify (IMessage* message) = 0;
  68. //------------------------------------------------------------------------
  69. static const FUID iid;
  70. };
  71. DECLARE_CLASS_IID (IConnectionPoint, 0x70A4156F, 0x6E6E4026, 0x989148BF, 0xAA60D8D1)
  72. //------------------------------------------------------------------------
  73. } // namespace Vst
  74. } // namespace Steinberg
  75. //------------------------------------------------------------------------
  76. #include "pluginterfaces/base/falignpop.h"
  77. //------------------------------------------------------------------------