Broadcast Module / Approved design (v3.81)

Program Audio: 87.4 FM (87.4 FM)

A now-playing display styled as The Underglow's late-night radio

Photo placeholder Screenshot — Program Audio overlay showing a track

TL;DR

When music is playing, a slim radio-style display shows the song and artist under the banner "The Underglow · 87.4 FM // PROGRAM AUDIO". It works like a car radio readout, following whatever Spotify is doing live.

Three States

Playing
Track and artist on display, with long titles scrolling.
Paused
Stays briefly, then hides itself after about 30 seconds.
No playback
Hidden. It returns as soon as music resumes.

Station, Not Corporation

MBC's corporate graphics look like engineering terminals and equipment labels. Program Audio belongs to The Underglow, the station side of the network, so it's allowed to be warmer: deep violets, electric blue, magenta accents and radio-style type.

It's meant to feel like part of The Midnight Neon's late-night program, not a diagnostics panel.

Problems & Solutions

  1. 01

    Dropping the middleman

    ProblemThe first version bundled a third-party now-playing utility that wrote song details to text files, which MBC then had to read back.

    FixA small PowerShell bridge now reads Spotify's session straight from Windows' native media controls and streams JSON to the runtime, including the true playing or paused state.

  2. 02

    Hiding while music was playing

    ProblemOver several patches, the show/hide controller piled up event handlers, timer cancellations, expiry guards and OBS reconciliation. An armed hide timer could race a newer PLAYING state, so the overlay sometimes hid mid-song or failed to come back.

    FixI removed the whole controller and replaced it with one deterministic state machine. If Spotify is PLAYING, it's visible. Anything else starts one 30-second countdown.

    LessonWhen patches start guarding against other patches, reset the design instead of adding another layer.

  3. 03

    Stream wouldn't shut down cleanly

    ProblemPressing Ctrl+C to stop MBC threw a ReferenceError. A shutdown routine still called cancelProgramAudioHide(), a function that had already been removed.

    FixI removed the obsolete call from the shutdown path.

    LessonShutdown is a code path too. Removed features need to be cleaned out of cleanup routines, not just the main flow.