View Full Version : DVDSpy and Foobar2000
erikt
September 28th, 2004, 06:02 PM
Hi,
I've switched to Foobar2000 from Winamp and I'm surprised to see that DVDSpy
doesn't support Foobar. Any plans to do so? Am I an idiot (yes) and there is already
a way to get current track info and feed it to my LCD?
Thanks for any help.
Erik
peegee
September 28th, 2004, 11:41 PM
Hi.
I have never used foobar.
Mayby you could do it like this?
http://www.promixis.com/phpBB2/viewtopic.php?t=1936
erikt
September 29th, 2004, 05:42 AM
Hi,
I'll use that for the time being, thanks! However I really like how DVDSpy
lets your scripts react to Foobar events (like the track changing), rather
than having to poll the application.
Erik
erikt
September 30th, 2004, 10:24 AM
Anyone else have any suggestions? Any chance of getting Foobar supported
by DVDSpy sometime in the near future?
Let's say I wanted to take a crack at coding up Foobar support within DVDSpy. Any
pointers on how to get started? The SDK for foobar is downloadable, I can
use that and the source code for the DVDSpy Winamp plugin as a reference. Anything
else that could help?
Thanks,
Erik
Promixis
September 30th, 2004, 02:10 PM
Erik,
The dvdspy source code in on sourceforge.
Do you know c?
Does foobar expose a com object?
erikt
October 1st, 2004, 05:23 AM
Hi Mike,
I'll apologize ahead of time for my lack of knowledge regarding coding in the Windows
environment. I do know C pretty well, so I'm going through the DVDSpy source
and some Foobar plugin source to see what I can accomplish. I'm not sure what
a com object is, however I do know that it is possible (actually easy) to register
a callback class in a Foobar component (plug-in) which contains functions which will be
called everytime Foobar has a state change. These functions are passed appropriate
arguments such as the track name, etc.
I'm going to take a kick at writing the Foobar component, just to see if I can. I'll start
by "borrowing" the Winamp calls so that I don't have to modify any DVDSpy code. If
I have any success, I'll let you know.
Erik
Promixis
October 1st, 2004, 05:25 AM
Cool,
Sounds fairly straight forward if you can work it along the lines of the winamp dvdspy plugin. If I remember right, it uses sendmessage?
Good luck, if you need any help, post here.
erikt
October 3rd, 2004, 06:13 AM
Success! I've got it working. The only change I had to make to DVDSpy was
the registry script. Foobar's and DVDSpy's architectures made this project
amazingly easy.
I'm going to test this out for a few days, and I've asked a Foobar expert to do a
quick code review to make sure I haven't broken any of their rules. I'll send you the
final code as soon as this is done. Please let me know how I should upload this
to you.
Thanks,
Erik
Promixis
October 3rd, 2004, 02:25 PM
Great job. Congrats. I would PM MMcM and see if he wants to integrate the source as part of the dvdspy project. If not, we can host it here.
Mike
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.