Hello, I have applied a 3rd party vst plugin to an event in FMOD Designer, in the editor this plugin works and transforms the sound as required. But when I export it and load the .fev at runtime and try to run this event, the plugin has no effect, I
ve even tried to load it manually with m_System->loadPlugin, dll loads but is not applied to the event. Is it possible to make this stuff work? Ive attached the code and the project to the message, fmod related code is in FmodProcessor.cpp
- soth1985 asked 5 years ago
I think the stuff with setSoftwareFormat is related to numoutputchannels (and this is actually the parameter I want to change to decrease the size of output file), because if I call it like this
m_System->setSoftwareFormat(48000, FMOD_SOUND_FORMAT_PCM16, 0, 0, FMOD_DSP_RESAMPLER_LINEAR);
effect applies, if I set it numoutputchannels to 1 or 2 it does not apply. On the other hand I can modify sample rate as I wish.
It turned out that if I init the EventSystem like this: m_EventSystem->init(m_Config->maxChannels, FMOD_INIT_NORMAL, (void*)m_Config->outputFile.c_str(), FMOD_EVENT_INIT_NORMAL|FMOD_EVENT_INIT_SEARCH_PLUGINS); FMOD will correctly load and apply the VST plugin, but it will look for the plugins in the current directory and I cannot call the setPluginPath before init, so is there any way to load plugins from user supplied directory or I`ll have to put plugins in the same folder with exe file?
ve noticed that if Ill call setSoftwareFormat like this :
result = m_System->setOutput(FMOD_OUTPUTTYPE_WAVWRITER_NRT);
result = m_System->setSoftwareFormat(m_Config->sampleRate, FMOD_SOUND_FORMAT_PCM16, m_Config->numOutputChannels, 6, FMOD_DSP_RESAMPLER_LINEAR);
result = m_EventSystem->init(m_Config->maxChannels, FMOD_INIT_NORMAL, (void*)m_Config->outputFile.c_str(), FMOD_EVENT_INIT_NORMAL|FMOD_EVENT_INIT_SEARCH_PLUGINS);
VST effect wont be applied to the event even if i
ll supply setSoftwareFormat with the default parameters, if ill comment setSoftwareFormat out the effect will apply.
Please login first to submit.