7c95aba30a49440fb6a0a4a923b78d3784b7142b
Add an Upload page where the user picks an MP3 or WAV file. The new SongImportService copies it into %LOCALAPPDATA%\Radiosender\Music under a unique name, reads the duration with NAudio and title/artist from tags with TagLibSharp (falling back to the file name), and saves the song with Source = Upload. Wrong extensions, unreadable files, garbage data and files without audio are rejected; the copied file is deleted again so nothing is left behind. The page shows the result in a Snackbar. The music folder is injected so the service is testable without UI. Tests cover a generated WAV, duplicate names, wrong extension, garbage files, empty audio and missing files. Refs #4 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%