Skip to content

Commit

Permalink
UI: Add ALSA support to the Source Toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiitoo committed Dec 31, 2020
1 parent 781e32f commit cbe0d70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UI/context-bar-controls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,13 @@ void AudioCaptureToolbar::Init()
delete ui->activateButton;
ui->activateButton = nullptr;

#if !defined(DISABLE_ALSA)
obs_module_t *mod =
get_os_module("win-wasapi", "mac-capture", "linux-alsa");
#else
obs_module_t *mod =
get_os_module("win-wasapi", "mac-capture", "linux-pulseaudio");
#endif
if (!mod) {
return;
}
Expand Down

0 comments on commit cbe0d70

Please sign in to comment.