OpenFrameworks Oceanode addon for streaming internet radio with multi-channel output routing.
- Stream internet radio stations with VLC backend
- Route audio to specific output channels
- Multiple audio device support
- Easy integration with Oceanode
- Clone this repository to your OpenFrameworks addons folder:
cd openFrameworks/addons
git clone https://github.com/yourusername/ofxOceanodeOnlineRadio- Run the dependency installation script:
cd ofxOceanodeOnlineRadio/scripts
chmod +x install_dependencies.sh
./install_dependencies.sh- In your project's config.make, add:
XCODE_LDFLAGS = "-L/Applications/VLC.app/Contents/MacOS/lib -lvlc -lvlccore"- In Xcode project settings:
- Add to "Header Search Paths":
/Applications/VLC.app/Contents/MacOS/include - Add to "Library Search Paths":
/Applications/VLC.app/Contents/MacOS/lib
- Add to "Header Search Paths":
- Include the addon in your project:
#include "ofxOceanodeOnlineRadio.h"- Register the radio node with Oceanode:
ofxOceanode oceanode;
ofxOceanodeOnlineRadio::registerNodes(oceanode);- Create stations.json in your data/radio folder:
{
"station.name": "http://stream.url",
"another.station": "http://another.url"
}- ofxOceanode
- VLC 3.0+ (installed via script)
The addon comes with a default set of radio stations.
- Create a
data/radiofolder in your project - Copy the default
stations.jsonfile
To customize your stations:
- Edit
data/radio/stations.jsonin your project - Use this format:
{
"station.name": "http://stream.url",
"another.station": "http://another.url"
}Stations can be organized by categories using dot notation:
classical.mozartjazz.swissambient.sleep
This helps organize stations in the node's selection dropdown.
You can find radio stream URLs from:
- Radio Browser
- Online Radio Box
- Public radio websites (BBC, NPR, etc.)
Before adding a station, verify the stream URL works in VLC:
- Open VLC
- Media -> Open Network Stream
- Paste the URL and test playback