Radioadmin reads its track search host from client/_/config.json,
which names search.api.radioadmin.laut.fm. The provider asked
api.radioadmin.laut.fm instead, so the laut.fm library stayed empty.
Refs #15
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Settings page gets a laut.fm card: a switch, the live access data
from Radioadmin (server, port, mountpoint, user, password) and the
station id and Radioadmin token for the library. Password and token
are written to settings.json encrypted with DPAPI for the Windows user.
While laut.fm is on, the Schedule page shows a Live button next to
"Jetzt starten". It logs in at the Icecast server with PUT and sends a
copy of the broadcast mix as MP3 at 128 kbit/s, encoded by Windows
Media Foundation. ProgramOutput hands that copy out through a live
feed. Each item that starts sets the stream title; ad items send
START_AD_BREAK at most once every 15 minutes.
LautFmProvider searches the station's tracks through the Radioadmin
API and the Import page lists it while laut.fm is on, so laut.fm tracks
are imported into the same library as local songs. Providers can now
hide themselves with IsAvailable.
Nothing was tested against a real laut.fm account; the tests use a
local fake server and fake HTTP answers.
Refs #15
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Songs and the microphone now go through one audio channel,
ProgramOutput, instead of each opening its own device. ProgramMixer
builds two mixes in one pass: the broadcast for the listeners and a
monitor mix for the person at the desk. With two playback devices each
mix gets its own device; with one device the desk hears the monitor
mix.
The Schedule page gets a microphone button that works with or without
a running broadcast, and sliders for the music and microphone levels
on the broadcast, the music level on the monitor, and an option to
hear the broadcast exactly. The Settings page lets the user choose
the playback devices for the broadcast and for themselves.
MusicPlayer plays its tracks into the mixer; pause takes the track
out of the mix and resume puts it back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SongRepository uses Entity Framework Core instead of hand-written SQL. The
table and column names stay the same, so existing libraries open unchanged.
The duration rule moves into the repository, and a duplicate Openverse id
now surfaces as DbUpdateException. Libraries from before the Openverse
import, which lack the OpenverseId column, are no longer upgraded.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The generator sizes ad and moderator items itself and leaves their titles
empty, so PlaceholderContent and its two models had no caller left.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Adding music took two navigation items that each did half the job.
The new Import page has both sources as tabs and one shared list of
what was added in this session, with the reason for every failure and
a link to the library.
From computer: drop several MP3 or WAV files or pick them with a
multi-select dialog. Files are imported one by one on a background
thread with a progress bar, and a failing file does not stop the rest.
Openverse: search and download show a progress ring with a status
text. Results that are already in the library or have no duration are
marked in their row and cannot be imported; a double-click imports.
To detect duplicates, songs now store the Openverse result id. The
repository adds the column to existing databases and a unique index
keeps one song per Openverse result.
Refs #13
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start played the first item right away, although the plan begins at
the next full hour. The news was at :00 and :30 in the plan but not on
the real clock.
PlaybackEngine now takes a clock and waits before each item until its
planned start. An item that runs late is never cut; the next one then
starts right after it. When the broadcast starts after the plan has
begun, items that should already have started are skipped and playback
joins at the next one.
While the engine waits for the first item, the now-playing card shows
"On air at" with the planned time. Starting a plan that is already
over is refused with a message.
Refs #12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README now explains how to use each page, how the schedule is
built, the MVC layers and main services, and the Openverse license
and attribution handling. A checklist maps every requirement of the
assignment to the code that covers it.
The review found one gap, now listed under known limitations: the
plan starts at the next full hour, but Start plays right away, so the
news only hits the real :00 and :30 when the broadcast starts at a
full hour.
The home page still said that features "will appear here"; it now
points to the pages that exist.
Refs #12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Store the music library in SQLite through Microsoft.Data.Sqlite.
SongRepository creates the database file and the Songs table if they
are missing and offers GetAll, GetById, Add, Update and Delete with
parameterized queries. The app opens the database on startup at
%LOCALAPPDATA%\Radiosender\radiosender.db.
Add an xUnit test project that covers CRUD, persistence across
instances, SQL characters in values and the duration check.
Refs #2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the Radiosender solution on .NET 10 with the WPF-UI 4.3.0 package.
The main window is a FluentWindow with a title bar and a NavigationView
that opens a home page. Models, Controllers and Services folders hold
the MVC structure for the next issues. Replace the GitLab template
README with build instructions.
Refs #1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>