Files
mcde/programs/dtsystemsettings/Makefile.am
T
lotherk 1474c16a59 MCDE dtsystemsettings: Sound in three tabs, and the bar switch (t0163)
The area is programs/dtsystemsettings/sound.c now (as MCDE-PROGRAMS.md
planned), with the reference's tabs:

  * Sound Effects: "Choose an alert sound" and the events of the session's
    theme in a list (Launch, Start, End, Error, Warning, Beep, ...); a click
    sends the event through mcdesoundd (McdeSoundEvent).  The theme is an
    option menu of the directories next to the current one (it replaces the
    row of buttons).
  * Output: the volume of the default output and Mute
    (mcde_sys_volume_get/_set/_mute), and "Show the volume in the bar": it
    writes ~/.dt/bar (showvolume=), which dtbar reads at start -- with 0 the
    speaker is not managed (the status area is one icon narrower).
  * Input: a note, because McdeSys has no capture API (no level meter, no
    input volume); that belongs to the same addition as a sound-device list.

Measured under Xvfb with xdotool:

  - the three tabs (docs/screenshots/leopard/System-Preferences-Sound-mcde
    .png, ...-Sound-Output-mcde.png, ...-Sound-Input-mcde.png); Output shows
    the volume read from the server (100) and the two switches;
  - unchecking "Show the volume in the bar" writes "showvolume=0" into
    ~/.dt/bar (cat); dtbar started with that file shows no speaker in the
    status area, with "showvolume=1" it does;
  - a click on an event reaches mcdesoundd: its log names the theme and the
    file ("Error -> .../Camouflage/error.wav"); PulseAudio is not there in
    the Xvfb session ("Connection refused"), the daemon's own player is the
    fallback.

Not measurable here: hearing a sound (no audio device in the session), and
choosing an output device (McdeSys has no device list; two Pulse sinks are
not there).  A separate alert volume and the input level wait for that API.
2026-11-14 11:23:51 +00:00

24 lines
980 B
Makefile

MAINTAINERCLEANFILES = Makefile.in
# dtsystemsettings, the settings of the computer in one window (main.c);
# panes.c is the list of the panes, plain C with its own tests (make check).
bin_PROGRAMS = dtsystemsettings
dtsystemsettings_SOURCES = main.c panes.c panes.h ui.h accounts.c update.c \
network.c \
input.c appearance.c desktop.c timezone.c wifi.c \
startup.c sharing.c backup.c displays.c language.c sound.c
dtsystemsettings_CPPFLAGS = -I$(top_srcdir)/include $(DT_INCDIR) \
-I$(top_builddir)/include $(XFT_CFLAGS) \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
# Xft and fontconfig: the font families (appearance.c)
# Xrandr: the monitors (libDtSvc's McdeDisplays.c), when configure found it
dtsystemsettings_LDADD = $(LIBMCDESOUND) \
$(LIBMCDESYS) $(DTCLIENTLIBS) $(XRANDRLIB) \
$(XTOOLLIB) $(XFTLIB)
check_PROGRAMS = test_panes
test_panes_SOURCES = test_panes.c panes.c panes.h
TESTS = test_panes