667501e805795670155e0d73a96c538fd5b92bf6
A listener request can now replace any upcoming item in the schedule, also while the broadcast is running. The user picks a song from the library, selects a row in the timeline and clicks "Play instead of selected". ScheduleGenerator.Replace puts the song at that position and rebuilds only the rest of its half hour. Filler goes before the songs, so the last song still ends exactly when the next news starts. Items before the swap and all later half hours stay as they were. The filler budget counts the ads and talk already planned earlier in that half hour, and an ad never follows another ad. PlaybackEngine.ReplaceUpcoming switches the running engine to the new plan. It refuses when the item has already started, and the engine reads each next item under a lock, so a swap cannot hit an item that is just going on air. The timeline marks the item on air with a play icon instead of selecting it, so the selection is free for the swap target. A hint next to the button says why a row cannot be replaced (news, already played, no song chosen). Refs #11 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blockwoche 3.1: Radiosender
WPF desktop app that plans and plays a radio program: random music from a SQLite library, news at :00 and :30, and ad and moderator blocks.
Requirements
- Windows
- .NET SDK 10
Build and run
dotnet build Radiosender.slnx
dotnet run --project src/Radiosender
dotnet test Radiosender.slnx
The app creates its SQLite database on first start at %LOCALAPPDATA%\Radiosender\radiosender.db.
Structure
The app uses the MVC pattern and WPF UI for the interface.
src/Radiosender/Models: data and domain typessrc/Radiosender/Views: windows and pages (XAML)src/Radiosender/Controllers: logic that connects views and modelssrc/Radiosender/Services: database, audio player and API access
Description
📻 Program to stream radio specially to lautfm.
350 KiB
0 Stars
1 Watchers
0 Forks
Languages
C#
100%