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.

ivstprefetchablesupport.h 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //------------------------------------------------------------------------
  2. // Project : VST SDK
  3. //
  4. // Category : Interfaces
  5. // Filename : pluginterfaces/vst/ivstprefetchablesupport.h
  6. // Created by : Steinberg, 02/2015
  7. // Description : VST Prefetchable Support Interface
  8. //
  9. //-----------------------------------------------------------------------------
  10. // This file is part of a Steinberg SDK. It is subject to the license terms
  11. // in the LICENSE file found in the top-level directory of this distribution
  12. // and at www.steinberg.net/sdklicenses.
  13. // No part of the SDK, including this file, may be copied, modified, propagated,
  14. // or distributed except according to the terms contained in the LICENSE file.
  15. //-----------------------------------------------------------------------------
  16. #pragma once
  17. #include "pluginterfaces/vst/vsttypes.h"
  18. #include "pluginterfaces/vst/ivstattributes.h"
  19. //------------------------------------------------------------------------
  20. #include "pluginterfaces/base/falignpush.h"
  21. //------------------------------------------------------------------------
  22. //------------------------------------------------------------------------
  23. namespace Steinberg {
  24. namespace Vst {
  25. typedef uint32 PrefetchableSupport;
  26. enum ePrefetchableSupport
  27. {
  28. kIsNeverPrefetchable = 0, ///< every instance of the plug does not support prefetch processing
  29. kIsYetPrefetchable, ///< in the current state the plug support prefetch processing
  30. kIsNotYetPrefetchable, ///< in the current state the plug does not support prefetch processing
  31. kNumPrefetchableSupport
  32. };
  33. //------------------------------------------------------------------------
  34. // IPrefetchableSupport Interface
  35. //------------------------------------------------------------------------
  36. /** Indicates that the Plug-in could or not support Prefetch (dynamically).
  37. \ingroup vstIPlug vst365
  38. - [plug imp]
  39. - [extends IComponent]
  40. - [released: 3.6.5]
  41. - [optional]
  42. The Plug-in should implement this interface if it needs to dynamically change between Prefetchable or not.
  43. By default (without implementing this interface) the host will decide in which mode the Plug-in will be process.
  44. For more info about Prefetch processing mode check ProcessModes::kPrefetch documentation.
  45. \section IPrefetchableSupportExample Example
  46. \code
  47. tresult PLUGIN_API myPlug::getPrefetchableSupport (PrefetchableSupport& prefetchable)
  48. {
  49. prefetchable = kIsNeverPrefetchable;
  50. switch (myPrefetchableMode)
  51. {
  52. case 0: prefetchable = kIsNeverPrefetchable; break;
  53. case 1: prefetchable = kIsYetPrefetchable; break;
  54. case 2: prefetchable = kIsNotYetPrefetchable; break;
  55. }
  56. return kResultOk;
  57. }
  58. \endcode */
  59. class IPrefetchableSupport : public FUnknown
  60. {
  61. public:
  62. //------------------------------------------------------------------------
  63. /** retrieve the current prefetch support. Use IComponentHandler::restartComponent (kPrefetchableSupportChanged)
  64. to inform the host that this support has changed. */
  65. virtual tresult PLUGIN_API getPrefetchableSupport (PrefetchableSupport& prefetchable /*out*/) = 0;
  66. //------------------------------------------------------------------------
  67. static const FUID iid;
  68. };
  69. DECLARE_CLASS_IID (IPrefetchableSupport, 0x8AE54FDA, 0xE93046B9, 0xA28555BC, 0xDC98E21E)
  70. } // namespace Vst
  71. } // namespace Steinberg
  72. //------------------------------------------------------------------------
  73. #include "pluginterfaces/base/falignpop.h"
  74. //------------------------------------------------------------------------