Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,462 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,370 people online right now. Registration is fast and FREE... Join Now!




Update For Those Who Care

 
Reply to this topicStart new topic

Update For Those Who Care, Winamp related

snoj
post 10 Feb, 2005 - 08:13 PM
Post #1


$Null

Group Icon
Joined: 31 Mar, 2003
Posts: 3,304



Thanked 5 times

Dream Kudos: 700
My Contributions


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 version
activeWinamp version
OO (?) 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
User is offlineProfile CardPM

Go to the top of the page

cyberscribe
post 10 Feb, 2005 - 08:17 PM
Post #2


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


Nice work here, Mr. Snoj.
User is offlineProfile CardPM

Go to the top of the page

snoj
post 10 Feb, 2005 - 08:24 PM
Post #3


$Null

Group Icon
Joined: 31 Mar, 2003
Posts: 3,304



Thanked 5 times

Dream Kudos: 700
My Contributions


thanks Mr. Scribe! biggrin.gif Your praise is my joy.

anyway, Code slightly updated. Takes up less CPU time now. And tells of status of currently playing song.

This post has been edited by hotsnoj: 15 Feb, 2005 - 10:40 AM
User is offlineProfile CardPM

Go to the top of the page

snoj
post 15 Feb, 2005 - 11:00 AM
Post #4


$Null

Group Icon
Joined: 31 Mar, 2003
Posts: 3,304



Thanked 5 times

Dream Kudos: 700
My Contributions


Code updated again with some comments at the bottom.

Oh and before I forget. Be sure to change the winamp path in the run() function. It's hard coded for now. Though maybe it will change when/if I move all this over to a php-gtk platform.



[edit]Check my signature out.

This post has been edited by hotsnoj: 15 Feb, 2005 - 11:00 AM
User is offlineProfile CardPM

Go to the top of the page

supersloth
post 15 Feb, 2005 - 11:57 AM
Post #5


serial frotteur

Group Icon
Joined: 21 Mar, 2001
Posts: 19,514



Thanked 11 times

Dream Kudos: 2147483647

Expert In: being gentlemanly

My Contributions


i think this might be a prime candidate for the code snippet section josh
User is online!Profile CardPM

Go to the top of the page

snoj
post 21 Feb, 2005 - 01:12 PM
Post #6


$Null

Group Icon
Joined: 31 Mar, 2003
Posts: 3,304



Thanked 5 times

Dream Kudos: 700
My Contributions


Updated code that uses activeWinamp instead. (Does the same as the original.)

http://josherickson.org/activewinamp.phps
User is offlineProfile CardPM

Go to the top of the page

snoj
post 2 Mar, 2005 - 04:58 PM
Post #7


$Null

Group Icon
Joined: 31 Mar, 2003
Posts: 3,304



Thanked 5 times

Dream Kudos: 700
My Contributions


Love the OO-ness....at least I think it's OO. confused.gif

http://willmarblog.com/code/class.winamp.phps


Sorry for the lack of comments, hopefully I'll continue in this php binge and get some phpdocumentor compatible documentation or at least some form of documentation. smile.gif

This post has been edited by hotsnoj: 2 Mar, 2005 - 05:31 PM
User is offlineProfile CardPM

Go to the top of the page

cyberscribe
post 2 Mar, 2005 - 07:02 PM
Post #8


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


QUOTE(hotsnoj @ Mar 2 2005, 05:58 PM)
Love the OO-ness....at least I think it's OO. confused.gif

It's OO. A little funky, but OO.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 12:59PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month