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/oss/osstray.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/oss/osstray.h')
| -rw-r--r-- | src/ui/oss/osstray.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/ui/oss/osstray.h b/src/ui/oss/osstray.h new file mode 100644 index 0000000..dda1c76 --- /dev/null +++ b/src/ui/oss/osstray.h @@ -0,0 +1,34 @@ +#pragma once + +#include <ksystemtray.h> + +class OssModel; +class OssDevice; +class OssMixerWindow; +class OssPopup; + +class OssTray : public KSystemTray +{ + TQ_OBJECT +public: + OssTray( OssModel *model, OssMixerWindow *win, TQWidget *parent = 0 ); + +public slots: + void updateIcon(); + +protected: + void mousePressEvent( TQMouseEvent *e ); + void wheelEvent( TQWheelEvent *e ); + void contextMenuAboutToShow( TDEPopupMenu *menu ); + +private slots: + void onPreferredChanged( OssDevice *dev ); + +private: + void middleClickMute(); + + OssModel *m_model; + OssMixerWindow *m_win; + OssDevice *m_output; + OssPopup *m_popup; +}; |
