Skip to content

Commit

Permalink
Check active state before querying latency. Fixes free-audio#229
Browse files Browse the repository at this point in the history
  • Loading branch information
David Schornsheim committed Feb 21, 2024
1 parent 3ea56d9 commit 91b1d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrapasvst3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ tresult PLUGIN_API ClapAsVst3::getState(IBStream* state)

uint32 PLUGIN_API ClapAsVst3::getLatencySamples()
{
if (_plugin->_ext._latency)
if (_plugin->_ext._latency && _active)
{
return _plugin->_ext._latency->get(_plugin->_plugin);
}
Expand Down

0 comments on commit 91b1d32

Please sign in to comment.