Author Topic: BASS_StreamCreateURL  (Read 125 times)


  • Posts: 75
« on: 16 Jun '22 - 12:50 »

I would like to filter a huge radio list (more than 30000 radio stations) to remove dead links.

What is the fastest way to do this using BASS_StreamCreateURL ?

Thank you.

Ian @ un4seen

  • Administrator
  • Posts: 24495
Re: BASS_StreamCreateURL
« Reply #1 on: 16 Jun '22 - 18:07 »
Using the BASS_STREAM_DECODE flag in the BASS_StreamCreateURL call will save a bit of time/memory for URLs that aren't dead. Also make sure that the BASS_CONFIG_NET_PREBUF_WAIT option is disabled (as is the default in the current BASS release).

If multiple URLs are on the same server then you could perhaps save some time by eliminating all of them if you can't connect to one of them. In that case, you should use a DOWNLOADPROC callback (and BASS_STREAM_STATUS flag) to detect if headers were received, ie. if headers were received then BASS was able to connect to the server and other URLs on the server may still be working. You may also want to check for BASS_ERROR_FILEFORM errors to detect URLs that are unplayable rather than dead.


  • Posts: 75
Re: BASS_StreamCreateURL
« Reply #2 on: 16 Jun '22 - 18:47 »
Thank you Ian

I shall test it asap.  :)


  • Posts: 75
Re: BASS_StreamCreateURL
« Reply #3 on: 17 Jun '22 - 09:41 »
For those wanting to collect as many internet radio and TV stations as possible.
Have a look at this link

See here the info you can retrieve
TAGS: 1930,1940,1950,1960,beautiful music,big band,classic hits,crooners,easy,easy listening,hd,light orchestral,lounge,oldies,otr,relaxation,swing,unwind

You can get the latest.sql list here:
« Last Edit: 17 Jun '22 - 10:00 by Patrice »