Commit Graph
15 Commits
Author SHA1 Message Date
fraujulianandClaude Opus 5.5 459f8ea7f5 feat(ui): show errors in a popup with the message
Failed saves, searches, imports and invalid input in the edit windows
now open a modal popup instead of a bar at the top of the page or red
text in the dialog. Hints and warnings stay in the bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:39:47 +01:00
fraujulianandClaude Opus 5.5 b1d09c6abd docs(readme): describe language choice, import and schedule changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:23:06 +01:00
fraujulianandClaude Opus 5.5 7a9ba99a27 fix(lautfm): send track searches to the Radioadmin search host
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>
2026-11-25 08:51:23 +01:00
fraujulianandClaude Opus 5.5 a94fb862d2 feat: stream live to laut.fm and import from its library
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>
2026-11-25 08:36:39 +01:00
fraujulianandClaude Opus 5.5 5d261717fe feat: mix music and microphone on one program output
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>
2026-11-25 08:21:13 +01:00
fraujulianandClaude Fable 5.2 2380f233b5 docs: describe dependency injection, music providers and the Internet Archive
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 15:09:36 +01:00
fraujulianandClaude Fable 5.2 65743279b1 refactor(database): access the library through EF Core
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>
2026-11-23 14:40:12 +01:00
fraujulianandClaude Fable 5.2 7cdc3b3a41 refactor: remove the unused placeholder lists
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>
2026-11-23 14:40:11 +01:00
fraujulianandClaude Fable 5.2 ac9170249b docs: describe the new schedule options, settings and German labels
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 14:22:53 +01:00
fraujulianandClaude Opus 5.5 0a0d8e1d4c feat: combine upload and Openverse into one import page
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>
2026-11-23 11:34:35 +01:00
fraujulianandClaude Opus 5.5 497ac8fd6c fix: start each schedule item at its planned time
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>
2026-11-23 11:20:10 +01:00
fraujulianandClaude Opus 5.5 6f3ce85307 docs: document usage, architecture and assignment checklist
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>
2026-11-23 11:15:06 +01:00
fraujulianandClaude Opus 5.5 a02081fe66 feat: add SQLite song database and repository
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>
2026-11-23 10:06:14 +01:00
fraujulianandClaude Opus 5.5 910709fe26 feat: initialize WPF project with WPF UI
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>
2026-11-23 09:57:35 +01:00
Julian Lechner 145fc13f31 Initial commit 2026-11-23 08:30:43 +00:00