{
  "commit": "3effc4a043e0fca93f5882c62eba9a2344b02d56",
  "count": 1,
  "generated_at": "2026-11-24T10:38:35Z",
  "items": [
    {
      "id": "radio",
      "profile": {
        "author": "fpscan, gadsby",
        "core_classification": "pure_libretro",
        "core_version": "1.1",
        "cores": [
          "radio"
        ],
        "display_name": "Internet Radio (Radio)",
        "emulator": "Radio",
        "files": [
          {
            "category": "game_data",
            "description": "default station list, read when the content yields no station",
            "name": "radio_stations.m3u",
            "note": "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.",
            "path": "radio_stations.m3u",
            "required": false,
            "source_ref": "source libretro-radio.c:2437-2461, source libretro-radio.c:2278-2291, source libretro-radio.c:2464-2481",
            "unsourceable": "station list the user writes, one stream URL or local audio path per line, with no name or entry the code expects",
            "validation": [
              "existence"
            ]
          }
        ],
        "notes": "Streams internet radio and plays local MP3 and WAV files behind a tuner\ndisplay with five visualisers. The station list is built once in\nretro_load_game, in this order: the content when it is given, then\nradio_stations.m3u in the system directory, then the same name in the save\ndirectory, then in the working directory, then the 100 most clicked\nstations of the radio-browser.info API over plain HTTP, and last eight\nSomaFM streams compiled into the core. Each step runs only while the list\nis still empty, so the first source that yields a station wins.\nref: libretro-radio.c:2409-2488\n\nContent is an .m3u or .txt playlist, or a single .mp3 or .wav file. A\nplaylist is read line by line: an EXTINF line names the next entry, any\nother line that is not a comment is a stream URL or a local file path,\nand a bare host gets http:// prepended. Up to 256 entries are kept and\neach is given a fake FM frequency for the tuner. A playlist that parses to\nzero entries counts as no content and the chain above continues, which is\nwhat the zero-byte empty.m3u in the repository is for. Local audio is\nopened from the path the playlist or the frontend gives, and a WAV must be\nPCM or float with a fmt and a data chunk.\nref: libretro-radio.c:1965-1971, libretro-radio.c:37,\n     libretro-radio.c:2221-2291, libretro-radio.c:2419-2435,\n     libretro-radio.c:746-797, libretro-radio.c:800-871\n\nStreaming is a hand-written HTTP/1.0 client over an AF_INET socket: the\nURL scheme is stripped, an https:// entry is joined in clear on the port\nit names or 80, ICY status lines are accepted and up to five redirects\nare followed. No TLS library, certificate store or font file is read: the\n8x8 glyphs are a table in the binary. MP3 decoding is libmad, compiled in\nfrom the libretro-deps submodule.\nref: libretro-radio.c:517-548, libretro-radio.c:564-743,\n     libretro-radio.c:81, Makefile:30-45, .gitlab-ci.yml:13-17\n\nThe presets are the loaded list seen through the Active Preset core\noption, which selects entries 1 to 100 by index, and a list longer than that\nis still walked with up and down on the pad. retro_load_game accepts a\nnull game, but retro_set_environment only sets the pixel format and the\nvariables and never announces SET_SUPPORT_NO_GAME, so the frontend still\ndemands a content path and the .info supports_no_game only shows the\nStart Core entry.\nref: libretro-radio.c:977-991, libretro-radio.c:1984-1999,\n     libretro-radio.c:2068-2073\n\nThe GitLab project is the copy the buildbot builds through its own CI,\nfrom the same tree as the author's GitHub repository, and the Makefile\nnames the binary radio_libretro.\nref: .gitlab-ci.yml:10, Makefile:17\n",
        "profiled_date": "2026-09-17",
        "role": "utility",
        "source": "https://git.libretro.com/libretro/libretro-radio",
        "source_commit": "5d7d786ad1d8703a52184ff2ee39712c46ed67c9",
        "systems": [],
        "type": "libretro",
        "upstream": "https://github.com/fpscan/libretro-radio",
        "upstream_commit": "5d7d786ad1d8703a52184ff2ee39712c46ed67c9",
        "version_basis": {
          "kind": "file",
          "path": "libretro-radio.c",
          "pattern": "info->library_version\\s+=\\s+\"([^\"]+)"
        }
      }
    }
  ],
  "kind": "emulators",
  "schema_version": 1
}
