HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: knox on 2009-05-29 16:38:02

Title: foo_stopaftercuralbum
Post by: knox on 2009-05-29 16:38:02
I wanted some way of stopping playback in Foobar 2000 after the end of the current album is reached but couldn't find either any acceptable built-in way of doing it (eg. via the playback queue) or any plugin that would help me (apart from maybe foo_uie_queuemanager but that seems to be incompatible with current versions and no longer updated).

So, I threw something together quickly. Thanks to foosion's handy tutorials and the quite neat, if sparsely documented, SDK this was really quick and painless - it only took a couple of hours in the end from downloading the SDK.

Here's the DLL for download: foo_stopaftercuralbum v0.2 (http://www.hydrogenaudio.org/forums/index.php?act=attach&type=post&id=5128)
And here's the source: foo_stopaftercuralbum v0.2 source (http://www.hydrogenaudio.org/forums/index.php?act=attach&type=post&id=5129)

(NB: This was built against the 0.9 SDK but works fine in the v1.0 betas, at least as of beta 5.)

This will add an extra 'Stop After Current Album' in your Playback menu. When enabled it should do exactly what it sounds like it should do!

The albums are differentiated on the basis of the following string by default:

'%album artist%| | %album% | %date% | %directoryname%'

If that changes then the album is regarded as having changed. You can change it in the advanced preferences if you like (under Playback -> Stop after current album).

I hope this is useful to someone. Let me know if you use it and like it :)
Title: foo_stopaftercuralbum
Post by: lo-fi on 2009-05-29 18:13:05
Thank You!!!

Very useful as i mainly use foobar for listening full albums with autoplaylists.
Title: foo_stopaftercuralbum
Post by: eradumvelhinho on 2009-05-29 18:36:47
Very good indeed.  Thanks

Edit: I can not download it.

Error: Invalid File.
Title: foo_stopaftercuralbum
Post by: Yirkha on 2009-05-29 19:06:40
If you ever wanted to make version 0.2:
Code: [Select]
// config.cpp:
advconfig_string_factory cfg_albumPattern("Stop after current album - album pattern", guid_cfg_albumPattern, advconfig_entry::guid_branch_playback, 0, "%album artist%|%album%|%date%|%directory%");

// on_playback_new_track():
pfc::string8 format;
cfg_albumPattern.get(format);
p_track->format_title_legacy(NULL, new_id_string, format, NULL);
Title: foo_stopaftercuralbum
Post by: knox on 2009-05-29 19:08:30
@eradumvelhinho:
I just downloaded it on a different computer and it worked fine for me?

@Yirkha:
Thanks for the tip :)
Title: foo_stopaftercuralbum
Post by: eradumvelhinho on 2009-05-29 19:30:10
Problem fixed!
Title: foo_stopaftercuralbum
Post by: solarlag on 2009-05-29 19:35:00
aah, this is great. something i've always missed! thank you very much, knox!

two things for a possible v0.2


Title: foo_stopaftercuralbum
Post by: skelly831 on 2009-05-30 16:43:47
I love this component, and I agree with solarlag's recommendations
Title: foo_stopaftercuralbum
Post by: knox on 2009-06-01 09:58:12
I've uploaded v0.2 - see the opening post.

There are some options under Advanced -> Playback -> Stop after current album to control the format of the album ID string and to only stop once, ie. to reset as requested after stopping once. Unfortunately the SDK doesn't allow the option in the Playback menu to be inserted earlier. Well, it might be possible but the SDK specifically says you shouldn't.

If a moderator could edit my opening post to point at these new links that'd be great. I don't seem to be able to do it myself (I guess there's some limit on how long after posting you can edit).
(Edit: nevermind!)
Title: foo_stopaftercuralbum
Post by: Peter on 2009-06-01 10:12:32
Post editing privileges fixed.
Please use our uploads forum (http://www.hydrogenaudio.org/forums/index.php?showforum=42) instead of external file hosting services.
Title: foo_stopaftercuralbum
Post by: knox on 2009-06-01 10:55:48
Thanks :) And I have done now.
Title: foo_stopaftercuralbum
Post by: solarlag on 2009-06-01 11:43:21
thanks for the update, knox!
great component 
Title: foo_stopaftercuralbum
Post by: FavioD on 2009-06-01 12:26:53
thanks
Title: foo_stopaftercuralbum
Post by: Thief on 2009-06-02 15:07:35
This is what I ever wanted, thanks for making dream reality Sir knox!
Title: foo_stopaftercuralbum
Post by: Emcee on 2009-06-06 14:10:51
A "Stop after Playback Queue" function would be nice (like in the outdated foo_uie_queuemanager)... 
Title: foo_stopaftercuralbum
Post by: Emcee on 2009-08-10 12:14:00
A "Stop after Playback Queue" function would be nice (like in the outdated foo_uie_queuemanager)... 


foo_stop_after_queue-0.1 

http://www.saunalahti.fi/cse/foobar2000/ (http://www.saunalahti.fi/cse/foobar2000/)

Thank you very much, Case!
Title: foo_stopaftercuralbum
Post by: jesus2099 on 2011-12-20 10:12:23
Wow thanks very much for this simple component!
I really like it.
I have tried the more recent (and overly complex imo) foo_stopafteralbum (http://www.hydrogenaudio.org/forums/?showtopic=83743), but it didn’t work for me (?).
Then I found this good old foo_stopaftercuralbum (http://www.hydrogenaudio.org/forums/?showtopic=72355) back again, which still works great for me (and there are even some settings available) !
Title: Re: foo_stopaftercuralbum
Post by: gob on 2023-08-17 02:28:12
Just curious if anyone still has this old component kicking around.