| 354 | } |
| 355 | |
| 356 | void MacroActionPlayAudioEdit::UpdateEntryData() |
| 357 | { |
| 358 | if (!_entryData) { |
| 359 | return; |
| 360 | } |
| 361 | |
| 362 | _filePath->SetPath(_entryData->_filePath); |
| 363 | _volumeDB->SetValue(_entryData->_volumeDB); |
| 364 | _monitorTypes->setCurrentIndex( |
| 365 | static_cast<int>(_entryData->_monitorType)); |
| 366 | for (int i = 0; i < 6; ++i) { |
| 367 | _tracks[i]->setChecked(_entryData->_audioMixers & (1u << i)); |
| 368 | } |
| 369 | _tracksContainer->setVisible(_entryData->_monitorType != |
| 370 | OBS_MONITORING_TYPE_MONITOR_ONLY); |
| 371 | _useStartOffset->setChecked(_entryData->_useStartOffset); |
| 372 | _startOffset->SetDuration(_entryData->_startOffset); |
| 373 | _startOffset->setEnabled(_entryData->_useStartOffset); |
| 374 | _useDuration->setChecked(_entryData->_useDuration); |
| 375 | _playbackDuration->SetDuration(_entryData->_playbackDuration); |
| 376 | _playbackDuration->setEnabled(_entryData->_useDuration); |
| 377 | _waitForCompletion->setChecked(_entryData->_waitForCompletion); |
| 378 | } |
| 379 | |
| 380 | void MacroActionPlayAudioEdit::FilePathChanged(const QString &path) |
| 381 | { |
nothing calls this directly
no test coverage detected