void Source::SetRelative(bool value) { #ifdef HAS_AUDIO_SOURCE impl->SetRelative(value); #else (void)value; throw System::PunkException(L"Audio source is not available"); #endif }
void Canvas::PassData(IOID source, float value, float relative){ auto it = data_connections.find(source); if(it == data_connections.end()){ std::cout << "WARNING: Passing data from source, which has no connections anymore..." << std::endl; return; } auto list = it->second; for(const IOIDWithMode& iwm : list){ auto ctrl = iwm.ioid.module->GetParamControllerByID(iwm.ioid.iolet); if(iwm.mode == DataConnectionMode::Absolute){ ctrl->Set(value); }else{ ctrl->SetRelative(relative); } } }