kopia lustrzana https://github.com/jameshball/osci-render
Fix crash in some DAWs (probably)
rodzic
3aa8990e8e
commit
7e8448fc43
|
@ -559,14 +559,16 @@ void OscirenderAudioProcessor::processBlock(juce::AudioBuffer<float>& buffer, ju
|
||||||
|
|
||||||
// Get MIDI transport info
|
// Get MIDI transport info
|
||||||
playHead = this->getPlayHead();
|
playHead = this->getPlayHead();
|
||||||
auto cpi = playHead->getPosition();
|
if (playHead != nullptr) {
|
||||||
if (cpi == juce::nullopt) {
|
auto cpi = playHead->getPosition();
|
||||||
currentPositionInfo = *cpi;
|
if (cpi != juce::nullopt) {
|
||||||
bpm = *currentPositionInfo.getBpm();
|
currentPositionInfo = *cpi;
|
||||||
playTimeSeconds = *currentPositionInfo.getTimeInSeconds();
|
bpm = *currentPositionInfo.getBpm();
|
||||||
isPlaying = currentPositionInfo.getIsPlaying();
|
playTimeSeconds = *currentPositionInfo.getTimeInSeconds();
|
||||||
timeSigNum = (*currentPositionInfo.getTimeSignature()).numerator;
|
isPlaying = currentPositionInfo.getIsPlaying();
|
||||||
timeSigDen = (*currentPositionInfo.getTimeSignature()).denominator;
|
timeSigNum = (*currentPositionInfo.getTimeSignature()).numerator;
|
||||||
|
timeSigDen = (*currentPositionInfo.getTimeSignature()).denominator;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculated number of beats
|
// Calculated number of beats
|
||||||
|
|
|
@ -28,8 +28,8 @@ void FileParser::parse(juce::String fileName, juce::String extension, std::uniqu
|
||||||
} else if (extension == ".lua") {
|
} else if (extension == ".lua") {
|
||||||
lua = std::make_shared<LuaParser>(fileName, stream->readEntireStreamAsString(), errorCallback, fallbackLuaScript);
|
lua = std::make_shared<LuaParser>(fileName, stream->readEntireStreamAsString(), errorCallback, fallbackLuaScript);
|
||||||
} else if (extension == ".gpla") {
|
} else if (extension == ".gpla") {
|
||||||
isAnimatable = true;
|
|
||||||
gpla = std::make_shared<LineArtParser>(stream->readEntireStreamAsString());
|
gpla = std::make_shared<LineArtParser>(stream->readEntireStreamAsString());
|
||||||
|
if (gpla != nullptr) isAnimatable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
sampleSource = lua != nullptr;
|
sampleSource = lua != nullptr;
|
||||||
|
|
|
@ -619,9 +619,11 @@
|
||||||
</LINUX_MAKE>
|
</LINUX_MAKE>
|
||||||
<VS2022 targetFolder="Builds/VisualStudio2022" smallIcon="pSc1mq" bigIcon="pSc1mq">
|
<VS2022 targetFolder="Builds/VisualStudio2022" smallIcon="pSc1mq" bigIcon="pSc1mq">
|
||||||
<CONFIGURATIONS>
|
<CONFIGURATIONS>
|
||||||
<CONFIGURATION isDebug="1" name="Debug" targetName="osci-render" enablePluginBinaryCopyStep="1"/>
|
<CONFIGURATION isDebug="1" name="Debug" targetName="osci-render" enablePluginBinaryCopyStep="1"
|
||||||
|
vst3BinaryLocation="C:\Users\DJ_Level_3\Documents\Ableton VSTs\"/>
|
||||||
<CONFIGURATION isDebug="0" name="Release" targetName="osci-render" alwaysGenerateDebugSymbols="1"
|
<CONFIGURATION isDebug="0" name="Release" targetName="osci-render" alwaysGenerateDebugSymbols="1"
|
||||||
debugInformationFormat="ProgramDatabase"/>
|
debugInformationFormat="ProgramDatabase" enablePluginBinaryCopyStep="1"
|
||||||
|
vst3BinaryLocation="C:\Users\DJ_Level_3\Documents\Ableton VSTs\"/>
|
||||||
</CONFIGURATIONS>
|
</CONFIGURATIONS>
|
||||||
<MODULEPATHS>
|
<MODULEPATHS>
|
||||||
<MODULEPATH id="juce_audio_basics" path="../../../JUCE/modules"/>
|
<MODULEPATH id="juce_audio_basics" path="../../../JUCE/modules"/>
|
||||||
|
|
Ładowanie…
Reference in New Issue