Yeah, i just downloaded it and required it in my code, but up to that point, i'm stumped, can anyone give me a list of functions and their description and/or documentation for it please?
Thanks!
[lua]
List of functions:
* 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 of metafunctions for BASS channels:
* play()
* pause()
* stop()
* getlength()
* getposition()
* gettag( string Format ) --Returns formated tags [url]http://gmodmodules.googlecode.com/sv...ags-readme.txt[/url]
* getplaying()
* getlevel()
* setposition( number noIdeaWhat )
* setvolume( float volume )
* fft2048() --No idea
* set3dposition( vec Pos, vec Orientation, vec Velocity)
* getrawtag( int )
[/lua]
Thanks, just what i was looking for.
Though, does the module have to be on every client or just on the server?
[QUOTE=decyg;26447087]Thanks, just what i was looking for.
Though, does the module have to be on every client or just on the server?[/QUOTE]
Every client.
Example
[lua]require("bass")
local mysound = BASS.StreamFile( "somesound.wav" )
if mysound then mysound:play() end[/lua]
ffffffffff
[QUOTE=decyg;26447106]ffffffffff[/QUOTE]
Just tell them to download it.
Yeah, i know, but i was hoping to do it without having to tell everyone to download it. Since it's kind of a pain if everyone has to download it if they want the jukebox to work.
Javascript? My current jukebox i run on my server uses a html panel and a flash element on my site.
oh. derp. i've just been using getid3 to get the length and a timer to keep track of it.
Sorry, you need to Log In to post a reply to this thread.