| 393 | } |
| 394 | |
| 395 | void VSTInstance::PowerOff() |
| 396 | { |
| 397 | if (mHasPower) |
| 398 | { |
| 399 | // Tell the effect we're going to stop processing |
| 400 | if (mVstVersion >= 2) |
| 401 | { |
| 402 | callDispatcher(effStopProcess, 0, 0, NULL, 0.0); |
| 403 | } |
| 404 | |
| 405 | // Turn the power off |
| 406 | callDispatcher(effMainsChanged, 0, 0, NULL, 0.0); |
| 407 | |
| 408 | // Set state |
| 409 | mHasPower = false; |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | void VSTInstance::SizeWindow(int w, int h) |
| 414 | { |