You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2022. It is now read-only.
The exception is only thrown in debug mode since it is triggered by a valid coordinates assertion during currentPositionMarker.setRectangle() in AudioThumbnailComp.cpp, caused by timeToX() returning -nan(ind) and therefore the new Rectangle having an x value of -nan(ind).
timeToX() is returning that because for some reason visibleRange.getLength() is 0 at that point.
A possible fix would be this:
Furthermore a little change in PluginProcessor.cpp is needed, since getXmlFromBinary (now?) returns std::unique_ptr:
void AudioFilePlayerProcessor::setStateInformation(const void* data, int sizeInBytes)
{
std::unique_ptr<XmlElement> xmlState(getXmlFromBinary(data, sizeInBytes));
Last, I was getting Cannot open include file: 'pluginterfaces/vst2.x/vstfxstore.h': No such file or directory, adding JUCE_VST3_CAN_REPLACE_VST2 = 0 to preprocessor definitions in the projucer fixed that.