UI: Separate replay buffer from recording
Replay buffer and recording should be separate in case the user wants to start recording from a specific point rather being forced to reconfigure for regular recording. Creates a new button on the main window below the recording button for turning on/off the replay buffer.
This commit is contained in:
parent
8f36d122be
commit
f790d0fe08
11 changed files with 396 additions and 83 deletions
|
|
@ -234,6 +234,21 @@ struct OBSStudioAPI : obs_frontend_callbacks {
|
|||
return main->outputHandler->RecordingActive();
|
||||
}
|
||||
|
||||
void obs_frontend_replay_buffer_start(void) override
|
||||
{
|
||||
QMetaObject::invokeMethod(main, "StartReplayBuffer");
|
||||
}
|
||||
|
||||
void obs_frontend_replay_buffer_stop(void) override
|
||||
{
|
||||
QMetaObject::invokeMethod(main, "StopReplayBuffer");
|
||||
}
|
||||
|
||||
bool obs_frontend_replay_buffer_active(void) override
|
||||
{
|
||||
return main->outputHandler->ReplayBufferActive();
|
||||
}
|
||||
|
||||
void *obs_frontend_add_tools_menu_qaction(const char *name) override
|
||||
{
|
||||
main->ui->menuTools->setEnabled(true);
|
||||
|
|
@ -286,6 +301,13 @@ struct OBSStudioAPI : obs_frontend_callbacks {
|
|||
return out;
|
||||
}
|
||||
|
||||
obs_output_t *obs_frontend_get_replay_buffer_output(void) override
|
||||
{
|
||||
OBSOutput out = main->outputHandler->replayBuffer;
|
||||
obs_output_addref(out);
|
||||
return out;
|
||||
}
|
||||
|
||||
config_t *obs_frontend_get_profile_config(void) override
|
||||
{
|
||||
return main->basicConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue