# Radio

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/radio/

It reads 1 file, none of them required: it starts games without them.

**About this profile**

| Detail | Value |
|---|---|
| Type | libretro |
| Classification | Pure libretro |
| Source | [https://git.libretro.com/libretro/libretro-radio](https://git.libretro.com/libretro/libretro-radio) |
| Upstream | [https://github.com/fpscan/libretro-radio](https://github.com/fpscan/libretro-radio) |
| Version | 1.1, stated in [`libretro-radio.c`](https://git.libretro.com/libretro/libretro-radio/-/blob/5d7d786ad1d8703a52184ff2ee39712c46ed67c9/libretro-radio.c) |
| Revision | [libretro/libretro-radio@5d7d786ad1d8](https://git.libretro.com/libretro/libretro-radio/-/commit/5d7d786ad1d8703a52184ff2ee39712c46ed67c9), [fpscan/libretro-radio@5d7d786ad1d8](https://github.com/fpscan/libretro-radio/commit/5d7d786ad1d8703a52184ff2ee39712c46ed67c9) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [EmuDeck](https://abdess.github.io/retrobios/platforms/emudeck/), [Lakka](https://abdess.github.io/retrobios/platforms/lakka/), [RetroArch](https://abdess.github.io/retrobios/platforms/retroarch/), [RetroDECK](https://abdess.github.io/retrobios/platforms/retrodeck/), [RetroPie](https://abdess.github.io/retrobios/platforms/retropie/) |
| Profiled | 2026-09-17 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/radio.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/radio.json) |
| Cores | radio |
| Author | fpscan, gadsby |

**Install this emulator's files**

The installer finds the setup and its BIOS folder, then downloads only the files this emulator reads there and checks each one.

**Windows:**

Open Start. Type **PowerShell**, press Enter. Click Copy. Right-click to paste. Press Enter.

PowerShell

```
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator radio
```

**macOS:**

Press Cmd+Space. Type **Terminal**, press Return. Click Copy. Press Cmd+V. Press Return.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator radio
```

**Linux:**

Open a terminal, often with Ctrl+Alt+T. Click Copy. Press Ctrl+Shift+V. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator radio
```

**Steam Deck:**

Hold power, pick **Switch to Desktop**. Open **Konsole**. Click Copy. Press Ctrl+Shift+V. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator radio
```

**Android (Termux):**

Install **Termux**, a terminal app. Paste the line. Press Enter. Accept the Python install and allow the storage access Android asks for.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator radio
```

**On the device:**

Open a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator radio
```

**Technical notes**

Streams internet radio and plays local MP3 and WAV files behind a tuner display with five visualisers. The station list is built once in retro_load_game, in this order: the content when it is given, then radio_stations.m3u in the system directory, then the same name in the save directory, then in the working directory, then the 100 most clicked stations of the radio-browser.info API over plain HTTP, and last eight SomaFM streams compiled into the core. Each step runs only while the list is still empty, so the first source that yields a station wins. ref: libretro-radio.c:2409-2488

Content is an .m3u or .txt playlist, or a single .mp3 or .wav file. A playlist is read line by line: an EXTINF line names the next entry, any other line that is not a comment is a stream URL or a local file path, and a bare host gets http:// prepended. Up to 256 entries are kept and each is given a fake FM frequency for the tuner. A playlist that parses to zero entries counts as no content and the chain above continues, which is what the zero-byte empty.m3u in the repository is for. Local audio is opened from the path the playlist or the frontend gives, and a WAV must be PCM or float with a fmt and a data chunk. ref: libretro-radio.c:1965-1971, libretro-radio.c:37, libretro-radio.c:2221-2291, libretro-radio.c:2419-2435, libretro-radio.c:746-797, libretro-radio.c:800-871

Streaming is a hand-written HTTP/1.0 client over an AF_INET socket: the URL scheme is stripped, an https:// entry is joined in clear on the port it names or 80, ICY status lines are accepted and up to five redirects are followed. No TLS library, certificate store or font file is read: the 8x8 glyphs are a table in the binary. MP3 decoding is libmad, compiled in from the libretro-deps submodule. ref: libretro-radio.c:517-548, libretro-radio.c:564-743, libretro-radio.c:81, Makefile:30-45, .gitlab-ci.yml:13-17

The presets are the loaded list seen through the Active Preset core option, which selects entries 1 to 100 by index, and a list longer than that is still walked with up and down on the pad. retro_load_game accepts a null game, but retro_set_environment only sets the pixel format and the variables and never announces SET_SUPPORT_NO_GAME, so the frontend still demands a content path and the .info supports_no_game only shows the Start Core entry. ref: libretro-radio.c:977-991, libretro-radio.c:1984-1999, libretro-radio.c:2068-2073

The GitLab project is the copy the buildbot builds through its own CI, from the same tree as the author's GitHub repository, and the Makefile names the binary radio_libretro. ref: .gitlab-ci.yml:10, Makefile:17

## Files

**1 file**: 0 required, 1 optional.

By kind: 1 game data.

In this collection: 0 in repo, 0 missing and 1 unsourceable.

## Game data

### `radio_stations.m3u` optional unsourceable game data

default station list, read when the content yields no station

- Opened from the system directory, then from the save directory, then from the working directory, each only while no station has been loaded yet. Parsed like a content playlist and accepted once one entry comes out of it. A missing or empty file hands over to the radio-browser.info API and then to the eight built-in SomaFM streams. A file put here replaces those two fallbacks for every start without content.
- Not collected yet: station list the user writes, one stream URL or local audio path per line, with no name or entry the code expects ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/))

**Validation and source**

- Validation: existence
- Asked for by: libretro glue
- Source: [`libretro-radio.c:2437-2461`](https://git.libretro.com/libretro/libretro-radio/-/blob/5d7d786ad1d8703a52184ff2ee39712c46ed67c9/libretro-radio.c#L2437-2461) (libretro glue), [`libretro-radio.c:2278-2291`](https://git.libretro.com/libretro/libretro-radio/-/blob/5d7d786ad1d8703a52184ff2ee39712c46ed67c9/libretro-radio.c#L2278-2291) (libretro glue), [`libretro-radio.c:2464-2481`](https://git.libretro.com/libretro/libretro-radio/-/blob/5d7d786ad1d8703a52184ff2ee39712c46ed67c9/libretro-radio.c#L2464-2481) (libretro glue)

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
