diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-05-18 00:00:17 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-05-18 00:00:17 -0400 |
| commit | 65c7ea9fbf4886fa3d6127c5fa699520f30f386c (patch) | |
| tree | bca364e1c1f0244d477349345ec7dd531b8032f8 /src/ui/preferencesdlg.h | |
| parent | 3909a06fe6786027c83e3adaef89c343cde4fbe3 (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/preferencesdlg.h')
| -rw-r--r-- | src/ui/preferencesdlg.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 <kdialogbase.h> #include <tqvaluelist.h> #include <tqstring.h> +#include <tqstringlist.h> 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<int> m_trayCardIndices; TQValueList<TQString> m_trayDeviceNames; #endif + +#ifdef WITH_OSS + OssModel *m_ossModel; + TQComboBox *m_ossTrayDevice; + TQValueList<int> m_ossTrayCardIndices; + TQValueList<TQString> m_ossTrayDeviceNames; +#endif }; |
