Audio
Tick Record audio in the window and pick the source — Mic, Desktop (system sound), or Both (mixed into one track) — or in code:

from castmane.config import AppConfigcfg = AppConfig(audio_enabled=True) # default mic# system sound instead:# cfg = AppConfig(audio_enabled=True, audio_mode="desktop")# mic + system sound mixed:# cfg = AppConfig(audio_enabled=True, audio_mode="both")List devices with pactl list short sources. “Desktop” auto-detects the
first .monitor source; paste a device name into the desktop-source field
(or audio_desktop_source) when auto-detection picks the wrong sink. Audio
is encoded as AAC
(avenc_aac on Wayland, aac on X11) into the same crash-safe file, so a
kill -9 recording and its MP4 remux both keep the audio track.
