-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scene switcher, added main thread execution loop, added screens…
…hot trigger, fixed issue where message was being deleted before child classes could parse it, fixed issue where quantizer would add unnecessary bytes if the current value was already fine
- Loading branch information
1 parent
7c6bd9e
commit b955415
Showing
4 changed files
with
152 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
#pragma once | ||
|
||
class stored | ||
struct stored | ||
{ | ||
int replay_buffer_save_count = 0; | ||
|
||
public: | ||
void increment_save_count() { replay_buffer_save_count++; } | ||
inline void increment_save_count() { replay_buffer_save_count++; } | ||
|
||
int get_replay_buffer_save_count() const { return replay_buffer_save_count; } | ||
bool get_recording_active() const { return obs_frontend_recording_active(); } | ||
bool get_streaming_active() const { return obs_frontend_streaming_active(); } | ||
inline int get_replay_buffer_save_count() const { return replay_buffer_save_count; } | ||
inline bool get_recording_active() const { return obs_frontend_recording_active(); } | ||
inline bool get_streaming_active() const { return obs_frontend_streaming_active(); } | ||
inline bool get_replay_buffer_active() const { return obs_frontend_replay_buffer_active(); } | ||
inline int get_scene_index() { | ||
obs_frontend_source_list_free(&sceneList); | ||
obs_frontend_get_scenes(&sceneList); | ||
for (size_t i = 0; i < sceneList.sources.num; i++) { | ||
obs_source_t* source = sceneList.sources.array[i]; | ||
if (source == obs_frontend_get_current_scene()) | ||
return i; | ||
} | ||
return -1; | ||
} | ||
|
||
obs_frontend_source_list sceneList = {}; | ||
}; |