summaryrefslogtreecommitdiff
path: root/distrho/src/DistrhoUIInternal.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'distrho/src/DistrhoUIInternal.hpp')
-rw-r--r--distrho/src/DistrhoUIInternal.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp
index 4ea26580..c226db32 100644
--- a/distrho/src/DistrhoUIInternal.hpp
+++ b/distrho/src/DistrhoUIInternal.hpp
@@ -341,6 +341,15 @@ public:
// -------------------------------------------------------------------
+#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
+ void* getDirectAccess() const noexcept
+ {
+ DISTRHO_SAFE_ASSERT_RETURN(fData != nullptr, 0);
+
+ return fData->dspPtr;
+ }
+#endif
+
uint32_t getParameterOffset() const noexcept
{
DISTRHO_SAFE_ASSERT_RETURN(fData != nullptr, 0);