Skip to content

Commit

Permalink
fix(style): Fix instances of formatting issues
Browse files Browse the repository at this point in the history
was stopping builds
  • Loading branch information
lulzsun committed Oct 30, 2024
1 parent 4986414 commit b763de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Recorders/LibObsRecorder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public override async Task<bool> StartRecording() {
if (SettingsService.Settings.captureSettings.captureGameAudio) {
IntPtr settings = obs_data_create();
obs_data_set_string(settings, "window", $"{WindowService.GetWindowTitle(session.WindowHandle)}:{WindowService.GetClassName(session.WindowHandle)}:{session.Exe}");
audioSources.TryAdd("Game Audio", obs_audio_source_create(audioProcessSourceId, "Game Audio", settings:settings, mono: false));
audioSources.TryAdd("Game Audio", obs_audio_source_create(audioProcessSourceId, "Game Audio", settings: settings, mono: false));
obs_set_output_source(1, audioSources["Game Audio"]);
obs_source_set_audio_mixers(audioSources["Game Audio"], 1 | (uint)(1 << Math.Min(1, 5)));
}
Expand Down Expand Up @@ -335,7 +335,7 @@ public override async Task<bool> StartRecording() {
foreach (var (audioApplication, index) in SettingsService.Settings.captureSettings.audioApplications.WithIndex()) {
IntPtr settings = obs_data_create();
obs_data_set_string(settings, "window", audioApplication.application);
audioSources.TryAdd("(input) " + audioApplication, obs_audio_source_create(audioProcessSourceId, "(input) " +audioApplication, deviceId: audioApplication.application, mono: false));
audioSources.TryAdd("(input) " + audioApplication, obs_audio_source_create(audioProcessSourceId, "(input) " + audioApplication, deviceId: audioApplication.application, mono: false));
obs_set_output_source((uint)(index + totalDevices + 1), audioSources["(input) " + audioApplication.application]);
obs_source_set_audio_mixers(audioSources["(input) " + audioApplication], 1 | (uint)(1 << Math.Min(index + totalDevices + 1, 5)));
obs_source_set_volume(audioSources["(input) " + audioApplication], audioApplication.applicationVolume / (float)100);
Expand Down

0 comments on commit b763de5

Please sign in to comment.