Skip to main content

Topic: foo_stopaftercuralbum (Read 10228 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • knox
  • [*]
  • Developer
foo_stopaftercuralbum
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
And here's the source: foo_stopaftercuralbum v0.2 source

(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 :)
  • Last Edit: 21 December, 2009, 10:15:03 AM by knox

  • lo-fi
  • [*]
foo_stopaftercuralbum
Reply #1
Thank You!!!

Very useful as i mainly use foobar for listening full albums with autoplaylists.
last.fm/user/boces

foo_stopaftercuralbum
Reply #2
Very good indeed.  Thanks

Edit: I can not download it.

Error: Invalid File.
  • Last Edit: 29 May, 2009, 01:38:33 PM by eradumvelhinho

  • Yirkha
  • [*][*][*][*][*]
  • Moderator
foo_stopaftercuralbum
Reply #3
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);
Full-quoting makes you scroll past the same junk over and over.

  • knox
  • [*]
  • Developer
foo_stopaftercuralbum
Reply #4
@eradumvelhinho:
I just downloaded it on a different computer and it worked fine for me?

@Yirkha:
Thanks for the tip :)

foo_stopaftercuralbum
Reply #5
Problem fixed!

  • solarlag
  • [*]
foo_stopaftercuralbum
Reply #6
aah, this is great. something i've always missed! thank you very much, knox!

two things for a possible v0.2
  • an option to reset stop-after-current-album when stopping
  • "stop after current album" should appear below "stop after current" in the playback menue



  • skelly831
  • [*][*][*][*][*]
  • Members (Donating)
foo_stopaftercuralbum
Reply #7
I love this component, and I agree with solarlag's recommendations
we was young an' full of beans

  • knox
  • [*]
  • Developer
foo_stopaftercuralbum
Reply #8
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!)
  • Last Edit: 01 June, 2009, 05:55:25 AM by knox

  • Peter
  • [*][*][*][*][*]
  • Administrator
foo_stopaftercuralbum
Reply #9
Post editing privileges fixed.
Please use our uploads forum instead of external file hosting services.

  • knox
  • [*]
  • Developer
foo_stopaftercuralbum
Reply #10
Thanks :) And I have done now.

  • solarlag
  • [*]
foo_stopaftercuralbum
Reply #11
thanks for the update, knox!
great component 

  • FavioD
  • [*][*]
foo_stopaftercuralbum
Reply #12
thanks

  • Thief
  • [*]
foo_stopaftercuralbum
Reply #13
This is what I ever wanted, thanks for making dream reality Sir knox!

  • Emcee
  • [*]
foo_stopaftercuralbum
Reply #14
A "Stop after Playback Queue" function would be nice (like in the outdated foo_uie_queuemanager)... 

  • Emcee
  • [*]
foo_stopaftercuralbum
Reply #15
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/

Thank you very much, Case!

  • jesus2099
  • [*][*][*]
foo_stopaftercuralbum
Reply #16
Wow thanks very much for this simple component!
I really like it.
I have tried the more recent (and overly complex imo) foo_stopafteralbum, but it didn’t work for me (?).
Then I found this good old foo_stopaftercuralbum back again, which still works great for me (and there are even some settings available) !
  • Last Edit: 20 December, 2011, 05:14:42 AM by jesus2099