summaryrefslogtreecommitdiff
path: root/src/windows/voicewindow.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-11-09 19:03:53 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2022-11-09 19:03:53 -0500
commite2784cd97bd9a4b5995c556d35bd4f08a2f4bad7 (patch)
tree460b835dd33539204c6b077fe465ab7eb5e41e54 /src/windows/voicewindow.cpp
parent047168873235c3d835aaf9836f549de08bd96a47 (diff)
downloadabaddon-portaudio-e2784cd97bd9a4b5995c556d35bd4f08a2f4bad7.tar.gz
abaddon-portaudio-e2784cd97bd9a4b5995c556d35bd4f08a2f4bad7.zip
model stuff to track active device
also minor refactor
Diffstat (limited to 'src/windows/voicewindow.cpp')
-rw-r--r--src/windows/voicewindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/windows/voicewindow.cpp b/src/windows/voicewindow.cpp
index 19d9863..7b574e4 100644
--- a/src/windows/voicewindow.cpp
+++ b/src/windows/voicewindow.cpp
@@ -126,6 +126,7 @@ VoiceWindow::VoiceWindow(Snowflake channel_id)
m_playback_combo.set_hexpand(true);
m_playback_combo.set_halign(Gtk::ALIGN_FILL);
m_playback_combo.set_model(Abaddon::Get().GetAudio().GetDevices().GetPlaybackDeviceModel());
+ m_playback_combo.set_active(Abaddon::Get().GetAudio().GetDevices().GetActivePlaybackDevice());
m_playback_combo.pack_start(*playback_renderer);
m_playback_combo.add_attribute(*playback_renderer, "text", 0);
m_playback_combo.signal_changed().connect([this]() {
@@ -137,6 +138,7 @@ VoiceWindow::VoiceWindow(Snowflake channel_id)
m_capture_combo.set_hexpand(true);
m_capture_combo.set_halign(Gtk::ALIGN_FILL);
m_capture_combo.set_model(Abaddon::Get().GetAudio().GetDevices().GetCaptureDeviceModel());
+ m_capture_combo.set_active(Abaddon::Get().GetAudio().GetDevices().GetActiveCaptureDevice());
m_capture_combo.pack_start(*capture_renderer);
m_capture_combo.add_attribute(*capture_renderer, "text", 0);
m_capture_combo.signal_changed().connect([this]() {