r/visualbasic • u/Accurate-Newt-8018 • Jul 16 '26
Built a free, open-source Lobby Radio Player in VB.NET/NAudio with smart ad injection and volume fading
Hey everyone,
I recently had to set up background music for a local business. The goal was simple: stream a live web radio, but inject their local promotional audio ads every few minutes. To my shock, almost every software that can do this is either locked behind an expensive monthly subscription, incredibly bloated, or looks like a control panel for a nuclear reactor. Since I couldn't find a dead-simple, free option, I built one myself: Lobby Radio Player (written in VB.NET, running on .NET 4.7.2).
What it does:
- Smart Audio Fading: It doesn't just abruptly cut the music. It smoothly fades out the web stream, plays the local .mp3/.wav ad, and gently fades the music back in.
- 100% Multithreaded: The UI never freezes or goes "(Not Responding)" while buffering streams.
- Uptime Scheduler: Set your operating hours (e.g., 08:00 to 23:00) and it handles standby/wake-up automatically.
- Auto-Reconnect Guard: If the Wi-Fi drops, it quietly tries to reconnect every 5 seconds without crashing.
- Independent Volumes: Keep the music background-friendly, but make sure the ads are loud and clear.
It’s completely free, open-source under the MIT license, and I've provided both a classic installer and a portable (.zip) version that runs without installation.
Check out the code, download it, or contribute here: https://github.com/0xVasic/lobby-radio-player
Quick note before the licensing police arrives in the comments: This is just a player (like VLC). The end-user is fully responsible for complying with local copyright laws and paying venue music licenses. Also, it doesn't modify the radio stream online; it literally just automates the volume slider on the local PC (essentially doing a digital "manual mute") to play a local audio file over the venue speakers, and then slides the volume back up.
Let me know what you think or if you have any feature requests!
1
u/Mayayana Jul 17 '26
Despite your disclaimers, I think you could still be liable for supporting "piracy". The intention of your software is to use a Web stream for commercial purposes, while cutting out the ads. So the user of the software would e hijacking the payments for the stream by putting in their own ads.
I understand your explanation of the way it functions, but the intent is still very clear. And once you get into commercial use, they (and possibly you) could be at risk for big lawsuits "to set an example". A business doing this and actually replacing the ads is very different from a teenager muting ads.
1
u/sa_sagan VB.Net Master Jul 17 '26
Does what it says on the box. Good job.
You could add support for providing a list of advertisements to play. So it could loop around a list if they have other ads or things they want to talk about, like other services offered etc...
Make it so it can be set to either loop through them or pick them off the list at random to play.
1
u/CheezitsLight Jul 17 '26
Update it to 8 to 10. Some functions on 4.7 are feprecatef and may be removed in release. Caught me in Canary months ago
There's a replacement but it's hard to find.
1
u/lev400 Jul 18 '26
Great