174e22318680d7dc3c79433da133f8f7933a0b24
ScheduleGenerator plans X full hours in half-hour slots. Each slot starts with 5 minutes of news at :00 or :30, then random songs from the library. Ads and moderator placeholders fill the remaining gap so the last song of the slot ends exactly when the next news starts, and no song is cut. Each half hour gets 2 to 10 minutes of ads and moderator talk, which keeps every hour within the 20 minute limit. Ads alternate with moderator segments and are capped by a configurable MaxAdBlock, so no ad block comes close to 20 minutes. If the library cannot fill a slot, the generator throws a ScheduleException with a hint to add songs. Unit tests cover every rule over several random seeds. Refs #8 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%