stevefolta / SFZero

A simple SFZ player plugin
MIT License
92 stars 32 forks source link

Small change to keep the library compatible with latest JUCE #5

Open PatrickKunz opened 6 years ago

PatrickKunz commented 6 years ago

The library does not compile anymore with the latest juce version because of unique pointers:

sfzero::Sound *sound = dynamic_cast<sfzero::Sound *>(getSound(0));

needs to be changed to:

sfzero::Sound *sound = dynamic_cast<sfzero::Sound *>(getSound(0).get());

jyg commented 4 years ago

Thanks for the tip. It worked for me. I had also to change occurrences of juce::String::empty into juce::String() in SFZSound.h, SFZReader.cpp, SFZSound.cpp