From 65c7ea9fbf4886fa3d6127c5fa699520f30f386c Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Mon, 18 May 2026 00:00:17 -0400 Subject: 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 --- src/ui/preferencesdlg.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/ui/preferencesdlg.h') diff --git a/src/ui/preferencesdlg.h b/src/ui/preferencesdlg.h index 93ac377..85f59c3 100644 --- a/src/ui/preferencesdlg.h +++ b/src/ui/preferencesdlg.h @@ -3,6 +3,7 @@ #include #include #include +#include class TQCheckBox; class TQComboBox; @@ -14,6 +15,10 @@ class TQWidgetStack; class AlsaModel; #endif +#ifdef WITH_OSS +class OssModel; +#endif + class PreferencesDlg : public KDialogBase { TQ_OBJECT @@ -25,6 +30,10 @@ public: PreferencesDlg( AlsaModel *model, TQWidget *parent = 0 ); #endif +#ifdef WITH_OSS + PreferencesDlg( OssModel *model, TQWidget *parent = 0 ); +#endif + void load(); signals: @@ -44,6 +53,9 @@ private: void buildBackendPage(); void save(); + // Maps combo index → backend key ("pulse", "alsa", "oss") + TQStringList m_backendIds; + // General — shared TQComboBox *m_backend; TQCheckBox *m_dockInTray; @@ -74,4 +86,11 @@ private: TQValueList m_trayCardIndices; TQValueList m_trayDeviceNames; #endif + +#ifdef WITH_OSS + OssModel *m_ossModel; + TQComboBox *m_ossTrayDevice; + TQValueList m_ossTrayCardIndices; + TQValueList m_ossTrayDeviceNames; +#endif }; -- cgit v1.2.3