HydrogenAudio

Hosted Forums => foobar2000 => Uploads - (fb2k) => Topic started by: shaneh on 2005-02-20 05:23:56

Title: Toaster For Foobar2000
Post by: shaneh on 2005-02-20 05:23:56
Ive ported most of Toaster for Winamp across to Foobar2000. It was suprisingly easy, the modular design I used from the start paid off I guess.

A couple things might be a little sketchy. Remember you need id3lib.dll if you want id3v2 cover images to work.

Also remember you should remove foo_msn if you are using the msn title updates in this plugin, otherwise disable them in Toaster.

[attachment=1320:attachment]

Please see http://www.myplugins.info (http://www.myplugins.info) for downloads and info.

Discussion here: http://www.hydrogenaudio.org/forums/index....showtopic=31695 (http://www.hydrogenaudio.org/forums/index.php?showtopic=31695)
Title: Toaster For Foobar2000
Post by: 4nt1 on 2005-02-20 05:42:06
cant wait to try out...  been looking forward to something like this

also where can i get the id3v2 dll file from??

ill try google in a sec..
Title: Toaster For Foobar2000
Post by: 4nt1 on 2005-02-20 05:57:39
Quote
cant wait to try out...  been looking forward to something like this

also where can i get the id3v2 dll file from??

ill try google in a sec..
[a href="index.php?act=findpost&pid=275220"][{POST_SNAPBACK}][/a]



hmm having some small troubles getting it to display with album art, im guessing im just doing something wrong but i am using the albumart panel which is working with my art so i guess its something to do with my config?

any more info you can give mt on working it properly... perhapsd a config explanation
Title: Toaster For Foobar2000
Post by: shaneh on 2005-02-20 06:00:54
It uses folder.jpg or whatever other file you specify in the "Covers" section of the configuration.

For id3v2 images, you need to have id3lib.dll somewhere where Toaster can use it, (you will get an error if you try show them without it).

You must also enable id3v2 images in the "Covers" section of the configuration.

Also, it currently only displays info for currently playing tracks, ie it wont pop-up if there is no song playing.

See: http://forums.winamp.com/showthread.php?s=&threadid=207630 (http://forums.winamp.com/showthread.php?s=&threadid=207630)
And: http://www.winamp.com/plugins/details.php?id=138586 (http://www.winamp.com/plugins/details.php?id=138586)

For more info. Note thats its quite configurable, and doesnt have to look like that screen shot. ie: [attachment=1322:attachment]
Title: Toaster For Foobar2000
Post by: 4nt1 on 2005-02-20 06:32:55
Quote
Quote
cant wait to try out...  been looking forward to something like this

also where can i get the id3v2 dll file from??

ill try google in a sec..
[a href="index.php?act=findpost&pid=275220"][{POST_SNAPBACK}][/a]



hmm having some small troubles getting it to display with album art, im guessing im just doing something wrong but i am using the albumart panel which is working with my art so i guess its something to do with my config?

any more info you can give mt on working it properly... perhapsd a config explanation
[a href="index.php?act=findpost&pid=275222"][{POST_SNAPBACK}][/a]


ok i have the dll

i can get the box to pop up etc.. but no images or text for that matter, i have played arounf with font colours, bg front etc... still no luck/...


edit:

okies i currently have an album playing eg blah and inside the folder the pic is blah.jpg and the string i am using to get the cover is

$replace(%_path%,%_filename_ext%,)folder.jpg

i am wanting to know what i am doing wrong cause if i rename the pic to folder.jpg then its fine... and i dont want to have to go through every folder and rename the jpg's to folder.jpg specially for the ones where i have the cover and the back...

maybe something can be added to handle more complex strings for guessing covers?

look at how the albumart source handles it to see what i mean...

hope this helps, im just trying to make the plugin even better because i am sure its my fault but just in case we can get it pimpn
Title: Toaster For Foobar2000
Post by: shaneh on 2005-02-20 06:37:41
hmm, not sure. I am simply using

metadb_handle *track = play_control::get()->get_now_playing();

to get the track for the title formatting and path retrieval etc. Or just using the handle passed in the play_callback on new track callback (as seen in the source to foo_msn). Does anyone know why this might not work for some people? I saw someone else had a similar problem with the foo_msn plugin.

If you delete Toaster.ini in the foobar directory (or profile directory) it should revert to some working defaults.
Title: Toaster For Foobar2000
Post by: 4nt1 on 2005-02-20 07:00:34
Quote
hmm, not sure. I am simply using

metadb_handle *track = play_control::get()->get_now_playing();

to get the track for the title formatting and path retrieval etc. Or just using the handle passed in the play_callback on new track callback (as seen in the source to foo_msn). Does anyone know why this might not work for some people? I saw someone else had a similar problem with the foo_msn plugin.

If you delete Toaster.ini in the foobar directory (or profile directory) it should revert to some working defaults.
[a href="index.php?act=findpost&pid=275227"][{POST_SNAPBACK}][/a]



ok now narrowed it down to the naming of the files of album covers, i need to simply work out a better script to choose file names,i can grab one from coverart plugin.

i worked out the glitches i had..
problem is foreground and background dont make logical sense, i was setting bg as the bg, fg as another layer on top of the bg, then changing the shadow colour thinking it was font  colour, so i was making the text invisible cause of colours choices, i now have it working the way i want...  more or less...

cant wait to play some more

any new options coming in new versions?
Title: Toaster For Foobar2000
Post by: shaneh on 2005-02-20 07:08:55
0.1 *is* the new version. It is based on the winamp 0.7 plugin. If you want new features, start using Toaster for Winamp 0.1 and work your way up

If anything comes to this plugin soon, it will be the missing features from the winamp plugin, such as the search and jump hot keys, rating notification etc.

Plus I want to get the playlist position tag working properly, but am not sure how to do it, other than just passing the current position as an "extra" format tag.
Title: Toaster For Foobar2000
Post by: Hidea on 2005-02-20 07:58:52
will this have a support for MSGPlus! Plugins too?

like http://sourceforge.net/projects/mpwinamp/ (http://sourceforge.net/projects/mpwinamp/) for instence.
Title: Toaster For Foobar2000
Post by: JEN on 2005-02-20 08:41:04
this is cool

where can we get skins for it?

thanks
Title: Toaster For Foobar2000
Post by: outie on 2005-02-20 09:05:17
Hi, can you please add support for unicode characters? I tried this plugin the tag info became some weird characters, some ???, and some squares.

I hope this is not foobar (the program itself) problem. I have heard that foobar does not output unicode titles.

Thanks!
Title: Toaster For Foobar2000
Post by: JEN on 2005-02-20 09:19:36
I have ratings for my tracks.  how do i display them in this plugin?

thanks
Title: Toaster For Foobar2000
Post by: shaneh on 2005-02-20 10:01:48
@JEN, outie: Do you have that support in the systray balloon tip? If not, then Toaster will also not have the support. It uses the same method for obtaining meta data.

EDIT: I have slightly fixed the way meta data retrieval works so you can use things like time elapsed etc. But it doesnt fix the unicode support.

@Hidea: This is a plugin for foobar2000 and winamp, not msgplus.

@JEN: skins are nothing more than images in toaster, unless you want to use winamp style skins. Grab any gen.bmp from a classic skin and name it "toast.bmp" and put it in your foobar directory. Turn on "winamp skin" and "borders".

Download Toaster 0.6 for winamp to see more info on the plugin
Title: Toaster For Foobar2000
Post by: badrad on 2005-02-20 11:27:45
Nice to see you developing for foobar Shaneh!

Anyway, I have a bizarre problem. I installed toaster and the required dll. I can see that its loaded in foobar, as I can see it was loaded in Component Libraries. It also appears in the middle of my screen on track change.

However, there is no preferences in my Foobar for toaster. And, I cannot find this toaster.ini file in either my foobar directory or prefrerences folder.

Any idea? Id love to use this.
Title: Toaster For Foobar2000
Post by: JEN on 2005-02-20 11:48:47
(http://img234.exs.cx/img234/7444/fb2ktoaster0ft.th.png) (http://img234.exs.cx/img234/7444/fb2ktoaster0ft.png)

I can get the rating to display using the %rating% tag, but it displays a number, anyone know how to display the circles which can be seen in the foobar2000 playlist?

Thanks
Title: Toaster For Foobar2000
Post by: shaneh on 2005-02-20 12:07:15
You won't be able to display those dynamic circle things which let you click on them to rate unfortuantly.

You can probably display a static *** etc though. I am not sure how to do it in foobar2000, possibly using the $progress keyword.

For winamp, I supply a %ratingstar% tag, but obviously this wont be the same under fb2k

@badseed: You should see the Toaster menu item under components. If not, you have a bit of an issue. Its strange that the foo_msn plugin didnt work for you either. Note that this plugin requires windows 2000 or XP. Plus it requires msvcr71.dll and gdiplus.dll.

@outie: If you can find the basic code to pull the unicde tags out of a track using a plugin, I will put it in. At the moment I have only seen ansi methods of getting meta data.
Title: Toaster For Foobar2000
Post by: JEN on 2005-02-20 12:18:25
Yes I am after basic static circles or stars

Thanks anyway
Title: Toaster For Foobar2000
Post by: dano on 2005-02-20 12:25:58
JEN: you can enter some thing like $if(%rating%,$repeat(*,%rating%)) to see stars.

shaneh: wow very nice plugin!
Title: Toaster For Foobar2000
Post by: JEN on 2005-02-20 12:44:48
dano - thanks!
Title: Toaster For Foobar2000
Post by: shaneh on 2005-02-20 13:29:40
I will hopefully update this plugin to be more in fb2k style, with colour text and complicated formatting strings etc. But not for a while.

Attached is the readme for 0.7 for the Winamp plugin.
Title: Toaster For Foobar2000
Post by: MrEnergizer on 2005-02-20 14:27:32
Thanx Shaneh nice work 
Might be nice if you could change the font colour of each line seperately 

Oh Iv just seen your last post.....you've already got it covered .
Thx again
Title: Toaster For Foobar2000
Post by: m-z on 2005-02-20 15:03:02
Wow, this thing is amazing.

Thank you shaneh.
Title: Toaster For Foobar2000
Post by: eliazu on 2005-02-20 15:11:31
hi!
big problem with hebrew.
its not possible to see hebrew no matter which font i choose.
i see weird words and the cover picture is not displayed either.
there's no problem with songs in english.
Title: Toaster For Foobar2000
Post by: alphaex32 on 2005-02-20 17:33:00
have any of you gotten id3 tag cover art to show up? I tagged all of my files with covers using musicmatch, but none of its showing up in toaster. Itunes and musicmatch are both able to read it fine.

And yes, I have the dll installed and the option checked in toaster.
Title: Toaster For Foobar2000
Post by: kl33per on 2005-02-20 17:47:46
I also have the same problem as badrad.  I cannot see the Toaster config under the components menu.  The only thing I can think of is some kind of conflict with another plugin.  Like badrad, it loads fine and displays on track change.  I don't have the extra dll installed as I don't need id3v2 support.
Title: Toaster For Foobar2000
Post by: synth7 on 2005-02-20 17:57:30
Quote
I also have the same problem as badrad.  I cannot see the Toaster config under the components menu.  The only thing I can think of is some kind of conflict with another plugin.  Like badrad, it loads fine and displays on track change.  I don't have the extra dll installed as I don't need id3v2 support.
[a href="index.php?act=findpost&pid=275371"][{POST_SNAPBACK}][/a]


Same here.
Title: Toaster For Foobar2000
Post by: foosion on 2005-02-20 18:38:15
Quote
@outie: If you can find the basic code to pull the unicde tags out of a track using a plugin, I will put it in. At the moment I have only seen ansi methods of getting meta data.[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=275294")
If you had read the [a href="http://foobar2000.org/FAQ.html]FAQ[/url], you would know that.
Quote
All strings passed around are char*, how do I get unicode strings?
All char* strings passed around in foobar2000 API are UTF-8 encoded. You can find proper routines for handling them in pfc/string.h (also see: helpers/unicode_helper.h for common win32 api related UTF-8 string helper code). Refer to sample components on exact info how to mix UTF-8 string based code with win32 API.
It also pays off to look at utf8api which provides UTF-8-ized wrappers for many Win32 functions including Common Dialogs and GDI-based text rendering (among others).

Regarding artist and title information on streaming audio, you can use play_control::playback_format_title_ex() with b_include_dynamicinfo set to true to display this kind of information. To watch for changes in dynamic info, use a play_callback.

Btw. I would prefer if you created a topic in the "3rd Party  Plugins" forum for further discussion of this component.
Title: Toaster For Foobar2000
Post by: banjobacon on 2005-02-20 18:51:55
Nice plugin. However, I'm pretty sure it's causing some weird crashes on my system. Nobody else having trouble with it crashing foobar2000?
Title: Toaster For Foobar2000
Post by: 4nt1 on 2005-02-20 20:49:55
Quote
Nice plugin. However, I'm pretty sure it's causing some weird crashes on my system. Nobody else having trouble with it crashing foobar2000?
[a href="index.php?act=findpost&pid=275389"][{POST_SNAPBACK}][/a]

my computer froze for the first time in like 6 months... i dont know if its co incidence
Title: Toaster For Foobar2000
Post by: alphaex32 on 2005-02-20 21:20:01
Quote
I also have the same problem as badrad.  I cannot see the Toaster config under the components menu.  The only thing I can think of is some kind of conflict with another plugin.  Like badrad, it loads fine and displays on track change.  I don't have the extra dll installed as I don't need id3v2 support.
[a href="index.php?act=findpost&pid=275371"][{POST_SNAPBACK}][/a]


Check your components menu. I got confused at first also.
Title: Toaster For Foobar2000
Post by: wortels on 2005-02-20 21:37:36
Excellent working shaneh!
this might be a silly request (memory freak ) but is it possible that after the toast fades out the ram usage can be returned to normal?
Thanks for an excellent plugin
Title: Toaster For Foobar2000
Post by: kpolice on 2005-02-20 23:06:17
Quote
Excellent working shaneh!
this might be a silly request (memory freak ) but is it possible that after the toast fades out the ram usage can be returned to normal?
Thanks for an excellent plugin
[a href="index.php?act=findpost&pid=275416"][{POST_SNAPBACK}][/a]


Mine is using 3Mb minimized and 6MB maximized with the plugin.

Great plugin THX.
Title: Toaster For Foobar2000
Post by: Skates on 2005-02-20 23:24:43
Any chance of setting definable tag field name for where Toaster should read cover art data from?

Like when using musicmatch, it stores all the cover art in a tag called "Cover Art (front)"
Title: Toaster For Foobar2000
Post by: badrad on 2005-02-20 23:30:30
Quote
our components menu. I got confused at first also.
[a href="index.php?act=findpost&pid=275414"][{POST_SNAPBACK}][/a]

Haha, stupid me. There it is. Thanks.
Title: Toaster For Foobar2000
Post by: Biscuits on 2005-02-20 23:35:50
I don't think there's an option already for this, but could you make an option to have it not always be on top?

Thanks, cool plugin.

-Tristan
Title: Toaster For Foobar2000
Post by: synth7 on 2005-02-21 00:29:53
Quote
Quote
our components menu. I got confused at first also.
[a href="index.php?act=findpost&pid=275414"][{POST_SNAPBACK}][/a]

Haha, stupid me. There it is. Thanks.
[a href="index.php?act=findpost&pid=275443"][{POST_SNAPBACK}][/a]


I still don't see it 
Title: Toaster For Foobar2000
Post by: banjobacon on 2005-02-21 00:35:57
Edit: Post moved to new thread.
Title: Toaster For Foobar2000
Post by: shaneh on 2005-02-21 00:57:04
Please use http://www.hydrogenaudio.org/forums/index....ndpost&p=275470 (http://www.hydrogenaudio.org/forums/index.php?showtopic=31695&view=findpost&p=275470) for further discussion.

I will use this thread for posting updated files only, until I organise some web space.
Title: Toaster For Foobar2000
Post by: spase on 2005-02-24 12:18:56
i am having trouble with the downloads.  what version of 7-zip are you using?
Title: Toaster For Foobar2000
Post by: Ran Sagy on 2005-02-28 15:23:41
Same here, tried with latest 7zip and WinRAR, both .rar and .7z files are corrupt.
Title: Toaster For Foobar2000
Post by: hunted on 2005-02-28 18:51:09
Quote
Same here, tried with latest 7zip and WinRAR, both .rar and .7z files are corrupt.
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=277864")

Try the link to rar in the winamp forums @ [a href="http://forums.winamp.com/showthread.php?postid=1601855#post1601855]http://forums.winamp.com/showthread.php?po...855#post1601855[/url]
Title: Toaster For Foobar2000
Post by: Ran Sagy on 2005-02-28 20:00:37
Yup, that one worked. attaching it here aswell :
Title: Toaster For Foobar2000
Post by: dimatrod on 2005-10-19 03:39:41
How can I make it appear when I press pause/play?  Also, here's mine.  Thanks for the help on Dynamic info as well

[a href="http://paintedover.com/uploads/show.php?loc=26&f=toaster.jpg" target="_blank"]

And I also changed the font used to orange, seems like no website uses it, and dark grey/brown/black combined with orange looks quite cool...
Title: Toaster For Foobar2000
Post by: vendis on 2006-06-16 17:37:30
I have a problem with the plugin.
I'm new here, so maybe this has been covered earlier, but I was unable to find so..
When the Foobar starts it loads automatically the original toaster(red little one). I have to "import" my own toaster skin each time, this is kinda troublesome.
How do I config this? Or change the original red toast to mine so that it loads automatically??