The module gm_bass was originally made by AzuiSleet and got major edited by me with his permission.
Gm_bass2 hooks into a third party sound engine called BASS by the un4seen organization and its plug-ins.
Using this module will make you able to stream various formats of sound and play them as 3d world sound.
This is outdated. You should use gm_bass3 instead.
Why did you edit it and what did you change?
My changes are:
- You can use gm_bass2 shared now! (This means it can also be used to get stream informations serverside while it is also used clientside.)
- Added AAC, FLAC, MOD support.
- Added support for the filesystem of GMod.
- Made use of GMod's BASS.
- Improved the GMod Window check, so you can also use it on a dedicated server.
- Warning: It's not compatible with the old gm_bass any more! Read the SVN Change logs or this thread for more infos.
- Renamed almost all functions, please read the documentation below.
- Made BASS always silent serverside.
- Updated the bass and plug-in libraries.
- Changed error outputs on loading errors.
- Changed sound fading.
- channel:IsValid(), channel:IsPaused() and channel:channel:IsStalled().
- string = BASS.DecodeErrorCode(number), gives out the description of an error code.
- table = BASS.Plugins, it's a table of the loaded plugins. The key is the name and the value is the version.
- two optional boolean arguments to BASS.StreamFile(), the 1st one is for 3d playing (false/nil = on) and the 2nd is for loop playing (true = on).
- a optional boolean argument to BASS.StreamFileURL(), it is for 3d playing (false/nil = on).
- a optional bool argument to channel:Play(), true makes the channel restart.
- all fft* function BASS supports
- Changed how are the channel:fft*() functions are working, it takes a table that gets changed now, instead of creating a new one each time.
- number = BASS.Version, that's number of the BASS version.
- number = BASS.ModuleVersion, that's number of the BASS version.
- number = channel:getfrequency(), that returns the sample rate in Hz.
- number = channel:getsample(), that returns the sample size in Bit.
- string = channel:gettype(), that returns the format as a string.
- number = channel:getvolume(), that returns the volume. (clientside)
- Added nil = channel:set3dfadedistance(number distance), sets the distance the sound begins to fade. (clientside)
- Added nil = channel:set3dcone(number innerangle, number outerangle, number outvolume)
- Sets the cone of the sound, in the inner angle the sound is played at max volume, out of the outerangle the sound is played at the given (outvolume) volume. (clientside)
- BASS.SetPosition(), not needed anymore.
- channel:setvolume() serverside.
- channel:channel_set3dposition() serverside.
- the 2nd argument of BASS.StreamFile(), it was a number that set the time offset. It never worked and could cause crashes.
Windows Binaries (Source included)