| 707 | } |
| 708 | |
| 709 | void setSource(FMOD_DSP_STATE* state, |
| 710 | IPLSource source) |
| 711 | { |
| 712 | auto effect = reinterpret_cast<State*>(state->plugindata); |
| 713 | |
| 714 | if (source == effect->simulationSource[1]) |
| 715 | return; |
| 716 | |
| 717 | if (!effect->newSimulationSourceWritten) |
| 718 | { |
| 719 | iplSourceRelease(&effect->simulationSource[1]); |
| 720 | effect->simulationSource[1] = iplSourceRetain(source); |
| 721 | |
| 722 | effect->newSimulationSourceWritten = true; |
| 723 | } |
| 724 | } |
| 725 | |
| 726 | FMOD_RESULT F_CALL setInt(FMOD_DSP_STATE* state, |
| 727 | int index, |
no test coverage detected