@@ -13,10 +13,9 @@ jobs: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
os: | os: | ||||
# wrong use of AU MIDIPacket | |||||
# - macos-12 | |||||
# - macos-13 | |||||
# - macos-14 | |||||
- macos-13 | |||||
- macos-14 | |||||
- macos-15 | |||||
# webgui failure | # webgui failure | ||||
# - ubuntu-20.04 | # - ubuntu-20.04 | ||||
- ubuntu-22.04 | - ubuntu-22.04 | ||||
@@ -42,11 +42,11 @@ jobs: | |||||
suffix: _24_04 | suffix: _24_04 | ||||
target: ${{ matrix.target }} | target: ${{ matrix.target }} | ||||
macos-12: | |||||
macos-13: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
target: [macos-intel, macos-universal, macos-10.15] | target: [macos-intel, macos-universal, macos-10.15] | ||||
runs-on: macos-12 | |||||
runs-on: macos-13 | |||||
steps: | steps: | ||||
- uses: actions/checkout@v4 | - uses: actions/checkout@v4 | ||||
with: | with: | ||||
@@ -54,14 +54,14 @@ jobs: | |||||
- uses: distrho/dpf-cmake-action@v1 | - uses: distrho/dpf-cmake-action@v1 | ||||
with: | with: | ||||
dpf_path: . | dpf_path: . | ||||
suffix: _12 | |||||
suffix: _13 | |||||
target: ${{ matrix.target }} | target: ${{ matrix.target }} | ||||
macos-13: | |||||
macos-14: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
target: [macos-intel, macos-universal, macos-10.15] | target: [macos-intel, macos-universal, macos-10.15] | ||||
runs-on: macos-13 | |||||
runs-on: macos-14 | |||||
steps: | steps: | ||||
- uses: actions/checkout@v4 | - uses: actions/checkout@v4 | ||||
with: | with: | ||||
@@ -69,14 +69,14 @@ jobs: | |||||
- uses: distrho/dpf-cmake-action@v1 | - uses: distrho/dpf-cmake-action@v1 | ||||
with: | with: | ||||
dpf_path: . | dpf_path: . | ||||
suffix: _13 | |||||
suffix: _14 | |||||
target: ${{ matrix.target }} | target: ${{ matrix.target }} | ||||
macos-14: | |||||
macos-15: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
target: [macos-intel, macos-universal, macos-10.15] | target: [macos-intel, macos-universal, macos-10.15] | ||||
runs-on: macos-14 | |||||
runs-on: macos-15 | |||||
steps: | steps: | ||||
- uses: actions/checkout@v4 | - uses: actions/checkout@v4 | ||||
with: | with: | ||||
@@ -84,7 +84,7 @@ jobs: | |||||
- uses: distrho/dpf-cmake-action@v1 | - uses: distrho/dpf-cmake-action@v1 | ||||
with: | with: | ||||
dpf_path: . | dpf_path: . | ||||
suffix: _14 | |||||
suffix: _15 | |||||
target: ${{ matrix.target }} | target: ${{ matrix.target }} | ||||
cmake_win32: | cmake_win32: | ||||
@@ -39,11 +39,11 @@ jobs: | |||||
suffix: _24_04 | suffix: _24_04 | ||||
target: ${{ matrix.target }} | target: ${{ matrix.target }} | ||||
macos-12: | |||||
macos-13: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
target: [macos-intel, macos-universal, macos-10.15] | target: [macos-intel, macos-universal, macos-10.15] | ||||
runs-on: macos-12 | |||||
runs-on: macos-13 | |||||
steps: | steps: | ||||
- uses: actions/checkout@v4 | - uses: actions/checkout@v4 | ||||
with: | with: | ||||
@@ -51,14 +51,14 @@ jobs: | |||||
- uses: distrho/dpf-makefile-action@v1 | - uses: distrho/dpf-makefile-action@v1 | ||||
with: | with: | ||||
dpf_path: . | dpf_path: . | ||||
suffix: _12 | |||||
suffix: _13 | |||||
target: ${{ matrix.target }} | target: ${{ matrix.target }} | ||||
macos-13: | |||||
macos-14: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
target: [macos-intel, macos-universal, macos-10.15] | target: [macos-intel, macos-universal, macos-10.15] | ||||
runs-on: macos-13 | |||||
runs-on: macos-14 | |||||
steps: | steps: | ||||
- uses: actions/checkout@v4 | - uses: actions/checkout@v4 | ||||
with: | with: | ||||
@@ -66,14 +66,14 @@ jobs: | |||||
- uses: distrho/dpf-makefile-action@v1 | - uses: distrho/dpf-makefile-action@v1 | ||||
with: | with: | ||||
dpf_path: . | dpf_path: . | ||||
suffix: _13 | |||||
suffix: _14 | |||||
target: ${{ matrix.target }} | target: ${{ matrix.target }} | ||||
macos-14: | |||||
macos-15: | |||||
strategy: | strategy: | ||||
matrix: | matrix: | ||||
target: [macos-intel, macos-universal, macos-10.15] | target: [macos-intel, macos-universal, macos-10.15] | ||||
runs-on: macos-14 | |||||
runs-on: macos-15 | |||||
steps: | steps: | ||||
- uses: actions/checkout@v4 | - uses: actions/checkout@v4 | ||||
with: | with: | ||||
@@ -81,5 +81,5 @@ jobs: | |||||
- uses: distrho/dpf-makefile-action@v1 | - uses: distrho/dpf-makefile-action@v1 | ||||
with: | with: | ||||
dpf_path: . | dpf_path: . | ||||
suffix: _14 | |||||
suffix: _15 | |||||
target: ${{ matrix.target }} | target: ${{ matrix.target }} |
@@ -106,7 +106,7 @@ | |||||
@implementation WEB_VIEW_DELEGATE_CLASS_NAME { | @implementation WEB_VIEW_DELEGATE_CLASS_NAME { | ||||
@public | @public | ||||
WebViewMessageCallback callback; | |||||
DISTRHO_NAMESPACE::WebViewMessageCallback callback; | |||||
void* callbackPtr; | void* callbackPtr; | ||||
bool loaded; | bool loaded; | ||||
} | } | ||||
@@ -202,7 +202,8 @@ static constexpr const uint32_t kType = d_cconst(STRINGIFY(DISTRHO_PLUGIN_AU_TYP | |||||
static constexpr const uint32_t kSubType = d_cconst(STRINGIFY(DISTRHO_PLUGIN_UNIQUE_ID)); | static constexpr const uint32_t kSubType = d_cconst(STRINGIFY(DISTRHO_PLUGIN_UNIQUE_ID)); | ||||
static constexpr const uint32_t kManufacturer = d_cconst(STRINGIFY(DISTRHO_PLUGIN_BRAND_ID)); | static constexpr const uint32_t kManufacturer = d_cconst(STRINGIFY(DISTRHO_PLUGIN_BRAND_ID)); | ||||
static constexpr const uint32_t kWantedAudioFormat = kAudioFormatFlagsNativeFloatPacked | |||||
static constexpr const uint32_t kWantedAudioFormat = 0 | |||||
| kAudioFormatFlagsNativeFloatPacked | |||||
| kAudioFormatFlagIsNonInterleaved; | | kAudioFormatFlagIsNonInterleaved; | ||||
@@ -278,8 +279,18 @@ typedef std::vector<RenderListener> RenderListeners; | |||||
#if DISTRHO_PLUGIN_WANT_MIDI_OUTPUT | #if DISTRHO_PLUGIN_WANT_MIDI_OUTPUT | ||||
// useful definitions | // useful definitions | ||||
static constexpr const uint32_t kMIDIPacketNonDataSize = sizeof(MIDIPacket) - sizeof(MIDIPacket::data); | |||||
static constexpr const uint32_t kMIDIPacketListNonDataSize = sizeof(MIDIPacketList) - sizeof(MIDIPacketList::packet); | |||||
static constexpr const uint32_t kMIDIPacketNonDataSize = sizeof(MIDIPacket) | |||||
#if __cplusplus >= 201103L | |||||
- sizeof(MIDIPacket::data); | |||||
#else | |||||
- sizeof(static_cast<MIDIPacket*>(0)->data); | |||||
#endif | |||||
static constexpr const uint32_t kMIDIPacketListNonDataSize = sizeof(MIDIPacketList) | |||||
#if __cplusplus >= 201103L | |||||
- sizeof(MIDIPacketList::packet); | |||||
#else | |||||
- sizeof(static_cast<MIDIPacketList*>(0)->packet); | |||||
#endif | |||||
// size of data used for midi events | // size of data used for midi events | ||||
static constexpr const uint32_t kMIDIPacketListMaxDataSize = kMIDIPacketNonDataSize * kMaxMidiEvents | static constexpr const uint32_t kMIDIPacketListMaxDataSize = kMIDIPacketNonDataSize * kMaxMidiEvents | ||||
@@ -387,6 +387,9 @@ END_NAMESPACE_DISTRHO | |||||
#define COCOA_VIEW_CLASS_NAME \ | #define COCOA_VIEW_CLASS_NAME \ | ||||
MACRO_NAME(CocoaView_, DISTRHO_PLUGIN_AU_TYPE, _, DISTRHO_PLUGIN_UNIQUE_ID, _, DISTRHO_PLUGIN_BRAND_ID) | MACRO_NAME(CocoaView_, DISTRHO_PLUGIN_AU_TYPE, _, DISTRHO_PLUGIN_UNIQUE_ID, _, DISTRHO_PLUGIN_BRAND_ID) | ||||
using DISTRHO_NAMESPACE::DPF_UI_AU; | |||||
using DISTRHO_NAMESPACE::d_nextSampleRate; | |||||
@interface COCOA_VIEW_CLASS_NAME : NSView | @interface COCOA_VIEW_CLASS_NAME : NSView | ||||
{ | { | ||||
@public | @public | ||||
@@ -267,12 +267,12 @@ public: | |||||
uiData->app.repaintIfNeeeded(); | uiData->app.repaintIfNeeeded(); | ||||
} | } | ||||
void addIdleCallbackForNativeIdle(IdleCallback* const cb, const uint timerFrequencyInMs) | |||||
void addIdleCallbackForNativeIdle(DGL_NAMESPACE::IdleCallback* const cb, const uint timerFrequencyInMs) | |||||
{ | { | ||||
uiData->window->addIdleCallback(cb, timerFrequencyInMs); | uiData->window->addIdleCallback(cb, timerFrequencyInMs); | ||||
} | } | ||||
void removeIdleCallbackForNativeIdle(IdleCallback* const cb) | |||||
void removeIdleCallbackForNativeIdle(DGL_NAMESPACE::IdleCallback* const cb) | |||||
{ | { | ||||
uiData->window->removeIdleCallback(cb); | uiData->window->removeIdleCallback(cb); | ||||
} | } | ||||
@@ -129,7 +129,7 @@ static uint translateVST3Modifiers(const int64_t modifiers) noexcept | |||||
* Helper class for getting a native idle timer. | * Helper class for getting a native idle timer. | ||||
*/ | */ | ||||
#if !DPF_VST3_USING_HOST_RUN_LOOP | #if !DPF_VST3_USING_HOST_RUN_LOOP | ||||
class NativeIdleCallback : public IdleCallback | |||||
class NativeIdleCallback : public DGL_NAMESPACE::IdleCallback | |||||
{ | { | ||||
public: | public: | ||||
NativeIdleCallback(UIExporter& ui) | NativeIdleCallback(UIExporter& ui) | ||||