2 Commits
Author SHA1 Message Date
lotherk 57d88b94b9 MCDE S2: the desktop's events play -- dtfile, dtwm, dtterm
dtfile plays OpenFolder when a directory opens (Main.c, GetNewView) and
Launch when a file starts (Columns.c, ColumnOpen); dtwm plays DeskSwitch on
ChangeToWorkspace; dtterm's bell plays TerminalBell instead of XBell and
falls back to XBell when no server runs.  The three programs link
libMcdeSound; the theme gained TerminalBell.

Measured under Xvfb with ttsession and dtwm:
  mcdesoundd: OpenFolder -> .../open_folder.wav (player)
  mcdesoundd: TerminalBell -> .../terminal_bell.wav (player)
DeskSwitch is built but not exercised (it needs a workspace switch in dtwm).
2026-11-12 12:32:14 +00:00
lotherk 71b50f0e90 MCDE S1: desktop events -- libMcdeSound, mcdesoundd, the first theme
lib/McdeSound (include/Mcde/Sound.h) reads the theme in the reference's
X-Resource form (*Launch.soundfile: launch.wav) and sends an event as a
ClientMessage to the selection owner of _MCDE_SOUND_SERVER.
programs/mcdesoundd is that server: it looks the event up, drops a repeat
within 50 ms, plays the file through paplay/aplay/audioplay (the X bell
when no player is installed) and logs the path.

The theme Camouflage carries 19 events with tones generated for MCDE (no
files from the reference), installed under share/sounds/themes.

Measured under Xvfb: mcdesoundd -selftest -> PASS; with the server running,
'Launch' and 'OpenFolder' arrive and the log names the played files.
2026-11-12 12:10:08 +00:00