• Winamp Dll
    12 replies, posted
  • Hey, I was wondering why there is no Winamp module for Gmod. Since C#/C++ is my beloved language, i'm kind of new into lua, just need some training ;). Well i wrote one and i want to release it here. Maybe someone can find a use for it. First of all, sorry for bad english, it's not my primary language. The package contains the sources, the binaries and a luafile that shows how the module works. I've written two dll's. One is for Garrysmod, one is for Winamp. With the Winamp dll, you can get the so called "SaData". The SaData shows you the amplitude of bass,high and low tones. The range goes from 0 (Bass) to 150 (High). In the example i used just 0 to 100. Here is a screenshot btw: [URL=http://img830.imageshack.us/i/winampdll.png/][IMG]http://img830.imageshack.us/img830/8492/winampdll.th.png[/IMG][/URL] You can download the package here: [url]http://www.mediafire.com/?nu69afkn421wt89[/url] Please report bugs if you find some :) Here's a list of all functions [code] FindWinamp() <- Call it at the start of a luafile. You have to find the "Window" of winamp. If you don't call it. You get 0 in every function. Song() <- Explains itself RestartWinamp() <- Explains itself also PlayState() <- Returns "Stopped", "Playing", "Paused" PlaySong() <- Plays or starts the song. If you call it, while the song is playing, the song gets restarted PauseSong() <- Paused the song StopSong() <- Stops the song NextSong() <- Changes to the next song PrevSong() <- Changes to the previous song GetShuffle() <- Returns true if shuffle is enabled, false if not SetShuffle(bool) <- true to enable shuffle, false to disable GetRepeat() <- Returns true if repeat is enabled, false if not SetRepeat() <- true to enable repeat, false to disable GetVolume() <- Returns the Volume the range is from 0 to 255 SetVolume(int) <- Sets the Volume to the said value SongLength() <- Returns the song-length in seconds SongPos() <- Returns the song-position in seconds Seek(int) <- Seek to the second you like GetEq(int) <- Returns the actual eq values the winamp documentation says: ** 0-9 The 10 bands of EQ data. 0-63 (+20db - -20db) ** 10 The preamp value. 0-63 (+20db - -20db) ** 11 Enabled. zero if disabled, nonzero if enabled. ** 12 Autoload. zero if disabled, nonzero if enabled. SetEq(int, int) <- Changes the Eq. GetPanning() <- Returns the panning between your speekers. Goes from -127 to 127 SetPanning(int) Sets the panning -127 - 127 If you have installed the winamp plugin you also can use: SaData(int) <- Returns the amplitude of the value you asked for. 0 - 150 [/code] Phew. That was all greetings
  • Afaik, Foobar does have an plugin called "Winamp Window", it emulates the Winamp window. So you also can use my module there. I'll post a link if i find it. /edit: Here it is [url]http://www.hydrogenaudio.org/forums/index.php?showtopic=58729[/url]
  • There is actually a Winamp module already. I think you can find it on garrysmod.org actually.
  • [QUOTE=sk89q;24466176]There is actually a Winamp module already. I think you can find it on garrysmod.org actually.[/QUOTE] You can't find modules on garrysmod.org. Also OP, use a table to store all your functions. So you can use winamp.Song() winamp.Next() Etc...
  • [QUOTE=iRzilla;24466301]You can't find modules on garrysmod.org. Also OP, use a table to store all your functions. So you can use winamp.Song() winamp.Next() Etc...[/QUOTE] This would be nice OP if you can change it.
  • [QUOTE=Bad HAL 9000;24475466][url]http://www.facepunch.com/showthread.php?t=479470[/url][/QUOTE] Saw it 2-3 Days after my release. _ I'll try to save everything in tables.
  • [QUOTE=iRzilla;24466301]You can't find modules on garrysmod.org.[/QUOTE] There are a handful of modules on garrysmod.org.
  • [QUOTE=sk89q;24518181]There are a handful of modules on garrysmod.org.[/QUOTE] No there are not. You can not upload binary modules to garrysmod.org
  • [QUOTE=iRzilla;24524706]No there are not. You can not upload binary modules to garrysmod.org[/QUOTE] [QUOTE=Bad HAL 9000;24475466][url]http://www.facepunch.com/showthread.php?t=479470[/url][/QUOTE] Note the link to the addon on garrysmod.org, DLL included.
  • [QUOTE=iRzilla;24524706]No there are not. You can not upload binary modules to garrysmod.org[/QUOTE] [url]http://www.garrysmod.org/downloads/?a=view&id=63151[/url]
  • [QUOTE=Bad HAL 9000;24475466][url]http://www.facepunch.com/showthread.php?t=479470[/url][/QUOTE] Still the best and working since there release ! :D