Audio problem when using HISE as plugin inside DAW
-
Dear HISE community,
I'm working with HISE for a week now.
The goal is to use it as plugin inside a DAW (I'm using FL Studio) and to plug together an effect using the node-graph network editor and to test and work work with it live in the DAW.For that, I compiled the vanilla source code of the plugin project of HISE (testing both remote HEADs of develop
#b7eb82e, and master HEAD#40c0e0a).
The only change I made to the respective JUCE project was to setHISE_BACKEND_AS_FX=1to the preprocessor definitions.I signed/notarized the resulting VST3 plugin, and loaded it into FL studio on each of the following hardware/software configurations.
Also, I created a simple "pass-through" network. I would expect an unmodified sound, as if no VST3 plugin was loaded.
The result I obtain however, was:- Mac OS Ventura, Intel Chip -> weird distorted sound

- Mac OS Monterey, Apple M1 Chip -> weird distorted sound

- Mac OS Ventura, Apple M2 Chip -> clean sound

Only configuration 3 lead to the expected output, hence I assume it works in principle (it's the very same binary!).
Configuration 1 is the system that I use for development. It is pretty much a vanilla system.I tried changing buffer size and sample rate in FL Studio, which has a marginal effect. Increasing the buffer size seems to help a bit, though.
The weird distorted sound to me sounds very similar to what I got when I compiled a VST3 plugin in debug mode, as it could not keep up processing in time.
However, I explicitly deleted all debug targets and made sure I build in release mode. Also, the processing network is so simple that even in debug mode, I would expect a clean sound.Is there some flag I have to set or some setting to adjust that could help?
Thank you very much in advance!
Btw: I have more questions that would not fit inside this post so I'll create another topic.
- Mac OS Ventura, Intel Chip -> weird distorted sound
-
I was able to fix the problem on the affected systems by changing an Audio setting in FL Studio.
The solution is to enable "Align tick lengths".
However, I have no idea why this is necessary and if this points towards a bug in the backend of HISE.
-
@spider said in Audio problem when using HISE as plugin inside DAW:
I was able to fix the problem on the affected systems by changing an Audio setting in FL Studio.
The solution is to enable "Align tick lengths".
However, I have no idea why this is necessary and if this points towards a bug in the backend of HISE.
-- mre likely the std. bug in FL Studio
-
So is that a known bug? I'm quite new to the field, that would be good to know.
However, I have to note that all other effects (including my own JUCE VST3 effect) worked just fine on the affected systems.
In HISE, i.e., in
BackendProcessor.cppandMainController.cppI see some, let's say "FL Studio-specific" code. But whatever it does, it does not seem to fix this issue. -
@spider said in Audio problem when using HISE as plugin inside DAW:
So is that a known bug? I'm quite new to the field, that would be good to know.
However, I have to note that all other effects (including my own JUCE VST3 effect) worked just fine on the affected systems.
In HISE, i.e., in
BackendProcessor.cppandMainController.cppI see some, let's say "FL Studio-specific" code. But whatever it does, it does not seem to fix this issue.Well "Bug" might be an unkind characterisation - FL Studio does not interact with your plugin like any other DAW, it dynamically changes the buffer size whenever it feels like it - unless you (the end user) tell it not to.. etc. etc.
Suffice to say FL studio will become the bug bare of your support calls...
-
This is good to know. Thanks!