Simon Fell > Its just code : Saturday, January 19, 2002

Simon Fell > Its just code

Saturday, January 19, 2002

Jake says the WinAmp API is pretty easy to use, I'll check it out, its got to be better than trawling the window titles
< 7:25:16 PM  # more elsewhere > ~14. Welcome to Japan.mp3 - 14. Welcome To Japan (Groove Salad 128k: A nicely chilled plate of ambient beats and grooves. [SomaFM])

Radio Rocks !, As you can see, i succesfully completed my project to hook WinAmp and Radio today, I wrote up the details if you want to see just how extensible Radio is.

< 5:16:44 PM  # more elsewhere > Adham Shaik - Pronoia (Groove Salad 128k: A nicely chilled plate of ambient beats and grooves. [SomaFM])

yes ! it worked <vbg>


< 4:08:40 PM  # more elsewhere > ~15. Urbs 'N Chaoz.mp3 - 15. Urbs N Chaoz (Groove Salad 128k: A nicely chilled plate of ambient beats and grooves. [SomaFM])

ok, so now we have (this is just inline inside the item template)

<%
local (adrblog = radio.weblog.init ());
local (adrposts = @adrblog^.posts);
local (postNum = "<%paddedItemNum%>" ) ;
local (adrpost = @adrposts^.[postNum]) ;
local (tunz = "[no music !]" ) ;
if defined ( adrpost^.tunz )
{
   tunz = adrpost^.tunz ;
};
return  tunz ;
%>

Just need to hook the post/edit stuff now and create the extra field


< 3:50:01 PM  # more elsewhere > [no music !]

that was painful, but here's the script to pull out an additional item from the webLogData posts table

<%
local (adrblog = radio.weblog.init ());
local (adrposts = @adrblog^.posts);
local (postNum = "<%paddedItemNum%>" ) ;
local (adrpost = @adrposts^.[postNum]) ;
return adrpost^.tunz ;
%>

Todo

(i) Hook the edit/creation of posts to record the results of calling the DLL

(ii) Gracefully handle all the previous posts with no .tunz field


< 3:43:53 PM  # more elsewhere > [no music !]

BTW, I wrote a little external DLL for Radio that gets you the current song from WinAmp. Its a pretty painless exercise, and makes the expansion possibilities for Radio almost limitless :). Here's the docs for writing external DLL's


< 1:45:37 PM  # more elsewhere > ~08. As fast as I could look.mp3 - 08. As Fast As I Could Look (Groove Salad 128k: A nicely chilled plate of ambient beats and grooves. [SomaFM])

Ahhh, i was sooo close. Hmmm, the item template gets applied to each item at render time, not at creation time. back to the docs.


< 12:08:59 PM  # more elsewhere > [no music !]

PocketSOAP 1.2.2 hits the streets.
< 11:37:13 AM  # more elsewhere > [no music !]

Starting the process of getting 4s4c 2.0 to do the right things, its starting to come together


< 8:40:20 AM  # more elsewhere > [no music !]