Page 1 of 1
Play audio stream
Posted: Tue Aug 02, 2022 9:01 pm
by Janni
Can anyone help me out with some code on how to play a radio audio stream using the BASS library from un4seen (in Linux) ?
I'm totally lost on where to start on using the libbass.so and the API
Thanks in advance
Re: Play audio stream
Posted: Wed Aug 30, 2023 6:51 pm
by rootuid
I'm in a similar position, anyone able to help?
Re: Play audio stream
Posted: Sat Oct 28, 2023 9:49 am
by firace
Something like this should work:
Code: Select all
OpenLibrary(0, "./libbass.so")
CallFunction(0, "BASS_Init", -1, 44100, 0, 0, 0)
hMedia = CallFunction(0, "BASS_StreamCreateURL", @"http://176.9.219.133:9998/stream", 0, 0 , 0, 0)
CallFunction(0, "BASS_ChannelPlay", hMedia, 1)
Repeat: Delay(20) : ForEver