Browse Source

Make standalone util symbols visible for any build

pull/321/head
falkTX 3 years ago
parent
commit
ab2cde1758
2 changed files with 17 additions and 2 deletions
  1. +15
    -0
      distrho/src/DistrhoUtils.cpp
  2. +2
    -2
      distrho/src/jackbridge/JackBridge.cpp

+ 15
- 0
distrho/src/DistrhoUtils.cpp View File

@@ -19,6 +19,7 @@
#endif

#include "../extra/String.hpp"
#include "../DistrhoStandaloneUtils.hpp"

#ifdef DISTRHO_OS_WINDOWS
# include <windows.h>
@@ -141,6 +142,20 @@ const char* getResourcePath(const char* const bundlePath) noexcept
return nullptr;
}

#ifndef DISTRHO_PLUGIN_TARGET_JACK
// all these are null for non-standalone targets
bool isUsingNativeAudio() noexcept { return false; }
bool supportsAudioInput() { return false; }
bool supportsBufferSizeChanges() { return false; }
bool supportsMIDI() { return false; }
bool isAudioInputEnabled() { return false; }
bool isMIDIEnabled() { return false; }
uint getBufferSize() { return 0; }
bool requestAudioInput() { return false; }
bool requestBufferSizeChange(uint) { return false; }
bool requestMIDI() { return false; }
#endif

// -----------------------------------------------------------------------

END_NAMESPACE_DISTRHO

+ 2
- 2
distrho/src/jackbridge/JackBridge.cpp View File

@@ -2327,7 +2327,7 @@ bool isMIDIEnabled()
return true;
}

uint32_t getBufferSize()
uint getBufferSize()
{
#if !(defined(JACKBRIDGE_DUMMY) || defined(JACKBRIDGE_DIRECT))
if (usingNativeBridge)
@@ -2345,7 +2345,7 @@ bool requestAudioInput()
return false;
}

bool requestBufferSizeChange(const uint32_t newBufferSize)
bool requestBufferSizeChange(const uint newBufferSize)
{
#if !(defined(JACKBRIDGE_DUMMY) || defined(JACKBRIDGE_DIRECT))
if (usingNativeBridge)


Loading…
Cancel
Save