| 176 | } |
| 177 | |
| 178 | void Player::valueTreePropertyChanged(ValueTree& treeWhosePropertyHasChanged, const Identifier& property) |
| 179 | { |
| 180 | if (property == NnId::PlayheadPositionSecId) { |
| 181 | double new_position = treeWhosePropertyHasChanged.getProperty(property); |
| 182 | |
| 183 | if (mProcessor->getState() != EmptyAudioAndMidiRegions) { |
| 184 | new_position = std::clamp(new_position, 0.0, mProcessor->getSourceAudioManager()->getAudioSampleDuration()); |
| 185 | } else { |
| 186 | new_position = 0.0; |
| 187 | } |
| 188 | |
| 189 | setPlayheadPositionSeconds(new_position); |
| 190 | } |
| 191 | |
| 192 | if (property == NnId::MidiOut) { |
| 193 | mShouldOutputMidi = treeWhosePropertyHasChanged.getProperty(property); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | void Player::_setGains(float inGainAudioSourceDB, float inGainSynthDB) |
| 198 | { |
nothing calls this directly
no test coverage detected