summaryrefslogtreecommitdiff
path: root/src/ui/devicewidget.cpp
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-17 23:38:18 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-17 23:38:18 -0400
commit3909a06fe6786027c83e3adaef89c343cde4fbe3 (patch)
treef5ea87c98b50764c8ad87e598f274319df0e74db /src/ui/devicewidget.cpp
parent311b69c14203860ab6d98bd11633eea287c8f04e (diff)
ALSA backend, backend switcher, UX fixesalsa-wip
- ALSA backend: AlsaModel, AlsaDevice, AlsaMixerWindow, AlsaTray, AlsaPopup - BackendController: live pulse↔alsa switching, preserves window position/visibility - PA shutdown fix: stop mainloop thread before disconnect/free to prevent crash - Exit crash fix: BackendController deleted explicitly before TQApplication exits - Waiting-for-PulseAudio placeholder when PA not connected - Preferences: live backend stack (Pulse/ALSA), Startup/Exit card with autostart, Recording card, no-tabs greying, remove stale "requires restart" label - Recording tray: track source outputs directly; fix LED init in popup; level meter forwarding for monitor-source recordings via m_monitorSourceToSink - TmixTray: fix config group General→Tray for scroll/mute/popup settings; RecordingTray suppresses right-click menu - audiodevice.h: add recordingActive() virtual accessor Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/ui/devicewidget.cpp')
-rw-r--r--src/ui/devicewidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/devicewidget.cpp b/src/ui/devicewidget.cpp
index f7ac79a..645ffaa 100644
--- a/src/ui/devicewidget.cpp
+++ b/src/ui/devicewidget.cpp
@@ -178,7 +178,8 @@ DeviceWidget::DeviceWidget( AudioDevice *device, PulseModel *model, TQWidget *pa
// Red recording-active LED — Input only, shows when a stream is capturing
if ( device->category() == AudioDevice::Input ) {
- m_recordingLed = new KLed( TQt::red, KLed::Off, KLed::Raised, KLed::Circular, bottomWidget );
+ KLed::State initState = device->recordingActive() ? KLed::On : KLed::Off;
+ m_recordingLed = new KLed( TQt::red, initState, KLed::Raised, KLed::Circular, bottomWidget );
m_recordingLed->setFixedSize( 16, 16 );
TQToolTip::add( m_recordingLed, i18n("Microphone in use") );
connect( device, TQ_SIGNAL(recordingActiveChanged(bool)),
@@ -291,7 +292,7 @@ void DeviceWidget::onDeviceName( const TQString &name )
void DeviceWidget::wheelEvent( TQWheelEvent *e )
{
TDEConfig *cfg = TDEGlobal::config();
- cfg->setGroup("General");
+ cfg->setGroup("Tray");
int step = cfg->readNumEntry("ScrollStep", 5);
int delta = e->delta() > 0 ? step : -step;
int vol = TQMAX( 0, TQMIN( 100, m_device->volume() + delta ) );