Gothic Online Forums
MP3/Internet radio - Printable Version

+- Gothic Online Forums (https://archive.gothic-online.com)
+-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html)
+--- Forum: Resources (https://archive.gothic-online.com/forum-14.html)
+---- Forum: Modules (https://archive.gothic-online.com/forum-32.html)
+---- Thread: MP3/Internet radio (/thread-326.html)

Pages: 1 2


MP3/Internet radio - Sative - 04.01.2016

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)


RE: MP3/Internet radio - Sative - 04.01.2016

Updated today!


RE: MP3/Internet radio - Zmorra - 09.01.2016

I have a question.

What are start and end in:
BASS_StreamCreateFile(fileName, start, end); ?


RE: MP3/Internet radio - Sative - 09.01.2016

Use 0 for start and end.


RE: MP3/Internet radio - Zmorra - 09.01.2016

Thanks. But I want to know what are these?


RE: MP3/Internet radio - Bimbol - 09.01.2016

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.


RE: MP3/Internet radio - Zmorra - 09.01.2016

BASS_SetVolume(vol); change main volume in Windows, not only in library. Can you fix it?


RE: MP3/Internet radio - Sative - 09.01.2016

This is not bug, it's a feature Wink


RE: MP3/Internet radio - Zmorra - 09.01.2016

But it volume down TeamSpeak too, this is problem.


RE: MP3/Internet radio - Sative - 10.01.2016

I will try to change it later.