HolyLib Wiki

bass

bass

This library implements the IGModAudioChannel but serverside.

Methods

bass.CreateDummyChannel( number sampleRate, number channels, number flags )
Creates a dummy channel
See https://www.un4seen.com/doc/#bass/BASS_StreamCreate.html with STREAMPROC_DUMMY for more details.
bass.CreateMixerChannel( number sampleRate, number channels, number flags )
Creates a mixer channel into which other channels can be combined into
See https://www.un4seen.com/doc/#bassmix/BASS_Mixer_StreamCreate.html for more details.
This function requires the BassMix plugin to work at all!
You can find all the plugins at https://www.un4seen.com/ drop them into the bin/ folder besides libbass.so
bass.CreatePushChannel( number sampleRate, number channels, number flags )
Creates a push channel into which you can write data
See https://www.un4seen.com/doc/#bass/BASS_StreamCreate.html with STREAMPROC_PUSH for more details.
Creates a split channel using the given channel
A split channel shares the same buffer with the given channel
See https://www.un4seen.com/doc/#bassmix/BASS_Split_StreamCreate.html for more details.
This function requires the BassMix plugin to work at all!
You can find all the plugins at https://www.un4seen.com/ drop them into the bin/ folder besides libbass.so
Returns the bass version as a string.
bass.PlayFile( string filePath, string flags, function callback )
Creates a IGMODAudioChannel using the given file.
bass.PlayURL( string url, string flags, function callback )
Creates a IGMODAudioChannel using the given url.
bass.Update( number time = RealFrameTime() )
Manually updates all BASS channels as if time milliseconds have passed.
It returns true on success, false if an update is already in progress.
See https://www.un4seen.com/doc/#bass/BASS_Update.html for more details.