Thread Rating:
  • 3 Vote(s) - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MP3/Internet radio
#1
Hello! I did BASS library implementation for Gothic Online. Now, you can use it simply with Squirrel for playing music on server on internet radio.

List of functions:
Code:
BASS_StreamCreateFile(fileName, start, end); //Create music stream from file
BASS_StreamCreateURL(url); //Create music stream from radio url
BASS_StreamFree(stream); //Stop playing music and free stream
BASS_GetVolume(stream); //Get volume of library
BASS_SetVolume(stream, vol); //Set volume of library (0-100)
BASS_ChannelStop(stream); //Stop music channel
BASS_ChannelPlay(stream, restart = FALSE); //play music from stream
BASS_ChannelPause(stream); //Pause stream
BASS_ChannelGetTags(stream); //Get tag of stream as string
UPDATE: 30.12.2015 - Fixed BASS_SetVolume crash
04.01.2016 - Disabled automatic volume changing when module is initiating
29.02.2016 - SetVolume only for selected channel (not all system)
DOWNLOAD! <- *CLICK* (SKIP AD)
Reply
#2
Updated today!
Reply
#3
I have a question.

What are start and end in:
BASS_StreamCreateFile(fileName, start, end); ?
Wilk Morski Klanu Espadre
Reply
#4
Use 0 for start and end.
Reply
#5
Thanks. But I want to know what are these?
Wilk Morski Klanu Espadre
Reply
#6
From BASS doc:
start
Type: OnlineSystem::Int64
File offset to begin streaming from.

end
Type: OnlineSystem::Int64
Data length... 0 = use all data up to the end of the file.
Reply
#7
BASS_SetVolume(vol); change main volume in Windows, not only in library. Can you fix it?
Wilk Morski Klanu Espadre
Reply
#8
This is not bug, it's a feature Wink
Reply
#9
But it volume down TeamSpeak too, this is problem.
Wilk Morski Klanu Espadre
Reply
#10
I will try to change it later.
Reply


Forum Jump:


Users browsing this thread: