mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
The "core" macro conditions and actions have been extracted out to the "base" plugin. The library now mostly contains functionality which is required across all plugins and (e.g. definitions for macro segments). The goal is to reduce the complexity and cross-dependencies and group the source files in a better way. This should relsove the "library limit of 65535 objects exceeded" build issue occuring in some Windows build environments.
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#pragma once
|
|
#include "export-symbol-helper.hpp"
|
|
|
|
#include <obs.hpp>
|
|
#include <chrono>
|
|
#include <string>
|
|
|
|
namespace advss {
|
|
|
|
struct SceneSwitchInfo {
|
|
OBSWeakSource scene;
|
|
OBSWeakSource transition;
|
|
int duration = 0;
|
|
};
|
|
|
|
struct TransitionData {
|
|
std::string name = "";
|
|
int duration = 0;
|
|
};
|
|
|
|
EXPORT void SwitchScene(const SceneSwitchInfo &, bool force = false);
|
|
void SwitchPreviewScene(const OBSWeakSource &scene);
|
|
|
|
EXPORT std::chrono::high_resolution_clock::time_point
|
|
GetLastTransitionEndTime();
|
|
EXPORT std::chrono::high_resolution_clock::time_point GetLastSceneChangeTime();
|
|
|
|
EXPORT OBSWeakSource GetCurrentScene();
|
|
EXPORT OBSWeakSource GetPreviousScene();
|
|
|
|
EXPORT bool ShouldModifyTransitionOverrides();
|
|
bool ShouldModifyActiveTransition();
|
|
void OverwriteTransitionOverride(const SceneSwitchInfo &, TransitionData &);
|
|
void RestoreTransitionOverride(obs_source_t *scene, const TransitionData &);
|
|
|
|
EXPORT bool AnySceneTransitionStarted();
|
|
|
|
// TODO: Remove at some point
|
|
void SetNextTransition(const SceneSwitchInfo &, obs_source_t *currentSource,
|
|
TransitionData &);
|
|
|
|
} // namespace advss
|