Skip to content

Commit

Permalink
add global audio sources
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Nov 25, 2022
1 parent 4b6b986 commit 030be42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source-clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ obs_properties_t *source_clone_properties(void *data)
OBS_COMBO_FORMAT_STRING);
obs_enum_sources(source_clone_list_add_source, p);
obs_enum_scenes(source_clone_list_add_source, p);
//add global audio sources
for (uint32_t i = 1; i < 7; i++) {
obs_source_t *s = obs_get_output_source(i);
if (!s)
continue;
source_clone_list_add_source(p, s);
obs_source_release(s);
}
obs_properties_add_bool(props, "audio", obs_module_text("Audio"));
p = obs_properties_add_list(props, "buffer_frame",
obs_module_text("VideoBuffer"),
Expand Down

0 comments on commit 030be42

Please sign in to comment.