MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / UpdateEntryData

Method UpdateEntryData

plugins/base/macro-action-play-audio.cpp:356–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void 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
380void MacroActionPlayAudioEdit::FilePathChanged(const QString &path)
381{

Callers

nothing calls this directly

Calls 4

setCheckedMethod · 0.80
SetPathMethod · 0.45
SetValueMethod · 0.45
SetDurationMethod · 0.45

Tested by

no test coverage detected