mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 15:16:25 +01:00
VST3: fix controller state restore
This partially reverts 9e7cfdd880, VST3 host-checker
uses complete state for the controller.
This commit is contained in:
parent
3271a96100
commit
09a4dcee68
1 changed files with 3 additions and 2 deletions
|
|
@ -2235,8 +2235,9 @@ VST3PI::load_state (RAMStream& stream)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (is_equal_ID (i->_id, Vst::getChunkID (Vst::kControllerState))) {
|
else if (is_equal_ID (i->_id, Vst::getChunkID (Vst::kControllerState))) {
|
||||||
ROMStream s (stream, i->_offset, i->_size);
|
assert (FUnknownPtr<Vst::IEditController> (_component) == 0);
|
||||||
tresult res = _controller->setState (&s);
|
stream.seek (i->_offset, IBStream::kIBSeekSet, &seek_result);
|
||||||
|
tresult res = _controller->setState (&stream);
|
||||||
if (!(res == kResultOk || res == kNotImplemented)) {
|
if (!(res == kResultOk || res == kNotImplemented)) {
|
||||||
DEBUG_TRACE (DEBUG::VST3Config, "VST3PI::load_state: failed to restore controller state\n");
|
DEBUG_TRACE (DEBUG::VST3Config, "VST3PI::load_state: failed to restore controller state\n");
|
||||||
rv = false;
|
rv = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue