summaryrefslogtreecommitdiff
path: root/src/ui/oss/ossdevicewidget.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-18 00:00:17 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-18 00:00:17 -0400
commit65c7ea9fbf4886fa3d6127c5fa699520f30f386c (patch)
treebca364e1c1f0244d477349345ec7dd531b8032f8 /src/ui/oss/ossdevicewidget.h
parent3909a06fe6786027c83e3adaef89c343cde4fbe3 (diff)
OSS backend for FreeBSD support
Adds a complete OSS audio backend alongside PulseAudio and ALSA: - OssDevice/OssModel: enumerate /dev/mixer*, poll for changes at 500ms - Full UI layer: mixer window, system tray, mini popup, per-channel widgets - Fake mute (saves/restores volume since OSS has no mute bit) - BackendController and PreferencesDlg updated; backend combo now uses m_backendIds list so any combination of compiled-in backends works Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/ui/oss/ossdevicewidget.h')
-rw-r--r--src/ui/oss/ossdevicewidget.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/ui/oss/ossdevicewidget.h b/src/ui/oss/ossdevicewidget.h
new file mode 100644
index 0000000..8a136cf
--- /dev/null
+++ b/src/ui/oss/ossdevicewidget.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <tqwidget.h>
+
+class OssDevice;
+class TQSlider;
+class TQLabel;
+class KLedButton;
+class BalanceKnob;
+
+class OssDeviceWidget : public TQWidget
+{
+ TQ_OBJECT
+public:
+ OssDeviceWidget( OssDevice *dev, TQWidget *parent = 0 );
+
+private slots:
+ void onVolumeChanged( int v );
+ void onMuteChanged( bool m );
+ void onPanChanged( int p );
+ void onSliderMoved( int v );
+ void onMuteToggled( bool on );
+ void onPanMoved( int p );
+
+private:
+ OssDevice *m_dev;
+ TQSlider *m_slider;
+ TQLabel *m_volLabel;
+ KLedButton *m_muteBtn;
+ BalanceKnob *m_balance;
+};