Alrighty. I finally have found a way to check if winamp is already running or not. That was the main reason holding up my script devolepment.
Anyway, enough with the talkin'. Here's the code. (Note it is php5)
WinampCOM versionactiveWinamp versionOO (?) version (Class and examples...doesn't actually
do anything)
Oh and you'll need
this plugin for winamp (or
activeWinamp plugin if you want to use activeWinamp [Note ActiveWinamp is needed for OO version]) and
php_ffi.dll for php5, and maybe (?) php-5.0.2 (as that is the version I am using).
Be prepared for some rather cool things I may try with this....that is if I can ever finish it.
[edit] Forth version released. This time a more OO style. OO version does not do anything but provide a framework to work..with.... Does not require Winamp to be started when script is loaded. Automaticly finds Winamp...if installed. Starts winamp if it is not running.
Plans/Ideas: Save playlist in a database type thing. Save last song (and position) and play from there instead of beginnning of list.
Possibly more OOP type structure. Winamp class that does most of the work and logic instead of overloading the while() loop with endless procedural code. Make GUI to control Winamp using PHP-GTK, Winbinder, or something else.
Unrealistic Plans: Autoclose when script is stopped. (Will likely require WimampCOM source work or new plugin altogether.)
This post has been edited by hotsnoj: 2 Mar, 2005 - 06:33 PM