| 375 | } |
| 376 | |
| 377 | void VSTInstance::PowerOn() |
| 378 | { |
| 379 | if (!mHasPower) |
| 380 | { |
| 381 | // Turn the power on |
| 382 | callDispatcher(effMainsChanged, 0, 1, NULL, 0.0); |
| 383 | |
| 384 | // Tell the effect we're going to start processing |
| 385 | if (mVstVersion >= 2) |
| 386 | { |
| 387 | callDispatcher(effStartProcess, 0, 0, NULL, 0.0); |
| 388 | } |
| 389 | |
| 390 | // Set state |
| 391 | mHasPower = true; |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | void VSTInstance::PowerOff() |
| 396 | { |
no outgoing calls
no test coverage detected