1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Fixed an issue saving state in the AU and AUv3 backends

This commit is contained in:
Tom Poole 2019-11-20 09:24:00 +00:00
parent 2b0f75070c
commit 8c535e8fdd
2 changed files with 4 additions and 4 deletions

View file

@ -702,7 +702,7 @@ public:
if (juceFilter != nullptr)
{
juce::MemoryBlock state;
juceFilter->getCurrentProgramStateInformation (state);
juceFilter->getStateInformation (state);
if (state.getSize() > 0)
{
@ -749,7 +749,7 @@ public:
const juce::uint8* const rawBytes = CFDataGetBytePtr (data);
if (numBytes > 0)
juceFilter->setCurrentProgramStateInformation (rawBytes, numBytes);
juceFilter->setStateInformation (rawBytes, numBytes);
}
}
}

View file

@ -566,7 +566,7 @@ public:
}
juce::MemoryBlock state;
getAudioProcessor().getCurrentProgramStateInformation (state);
getAudioProcessor().getStateInformation (state);
if (state.getSize() > 0)
{
@ -612,7 +612,7 @@ public:
const juce::uint8* const rawBytes = reinterpret_cast< const juce::uint8* const> ([data bytes]);
if (numBytes > 0)
getAudioProcessor().setCurrentProgramStateInformation (rawBytes, numBytes);
getAudioProcessor().setStateInformation (rawBytes, numBytes);
}
}