I've only got it working clientside, streaming a mp3 from my website, but for some reason it stops after 10-20 seconds. No luck serverside yet.
Some stuff I found out by reading the sources:
require "bass"
--Finds the sound file from garrysmod/sound
local bassTest = BASS.StreamFile( "some/sound.wav" )
if bassTest then bassTest:play() end
local function bassCall( handle, someNum )
if not handle then return end
handle:play()
end
BASS.StreamFileURL( "http://randomsite.com/audio.mp3", 0 bassCall )
List of functions:
[list][*]BASS.StreamFile( string path ) --Returns BASS channel on success, false on fail[*]BASS.StreamFileURL( string path, int, function callback ) --Can't remember what it returns[*]BASS.SetPosition( vec Pos, vec Vel, vec Front, vec Up ) --Sets 3D position in world[*]BASS.p_PendingChannels --No idea what this is[/list]
List of metafunctions for BASS channels:
[list][*]play()[*]pause()[*]stop()[*]getlength()[*]getposition()[*]gettag( string Format ) --Returns formated tags
http://gmodmodules.googlecode.com/sv...ags-readme.txt[*]getplaying()[*]getlevel()[*]setposition( number noIdeaWhat )[*]setvolume( float volume )[*]fft2048() --No idea[*]set3dposition( vec Pos, vec Orientation, vec Velocity)[*]getrawtag( int )[/list]
I hope this helps someone.
ON-TOPIC: I can't wait for the new version of gm_chrome :haw: