IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
foo_stopaftercuralbum
knox
post May 29 2009, 16:38
Post #1





Group: Developer
Posts: 5
Joined: 11-December 03
Member No.: 10363



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 :)

This post has been edited by knox: Dec 21 2009, 16:15
Go to the top of the page
+Quote Post
lo-fi
post May 29 2009, 18:13
Post #2





Group: Members
Posts: 22
Joined: 24-March 06
From: Mexico
Member No.: 28812



Thank You!!!

Very useful as i mainly use foobar for listening full albums with autoplaylists.


--------------------
last.fm/user/boces
Go to the top of the page
+Quote Post
eradumvelhinho
post May 29 2009, 18:36
Post #3





Group: Members
Posts: 101
Joined: 23-March 07
Member No.: 41759



Very good indeed. Thanks

Edit: I can not download it.

Error: Invalid File.

This post has been edited by eradumvelhinho: May 29 2009, 18:38
Go to the top of the page
+Quote Post
Yirkha
post May 29 2009, 19:06
Post #4





Group: FB2K Moderator
Posts: 2359
Joined: 30-November 07
Member No.: 49158



If you ever wanted to make version 0.2:
CODE
// 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.
Go to the top of the page
+Quote Post
knox
post May 29 2009, 19:08
Post #5





Group: Developer
Posts: 5
Joined: 11-December 03
Member No.: 10363



@eradumvelhinho:
I just downloaded it on a different computer and it worked fine for me?

@Yirkha:
Thanks for the tip :)
Go to the top of the page
+Quote Post
eradumvelhinho
post May 29 2009, 19:30
Post #6





Group: Members
Posts: 101
Joined: 23-March 07
Member No.: 41759



Problem fixed!
Go to the top of the page
+Quote Post
solarlag
post May 29 2009, 19:35
Post #7





Group: Members
Posts: 21
Joined: 24-April 06
From: de/B
Member No.: 29963



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


smile.gif
Go to the top of the page
+Quote Post
skelly831
post May 30 2009, 16:43
Post #8





Group: Members (Donating)
Posts: 782
Joined: 11-April 05
From: México
Member No.: 21361



I love this component, and I agree with solarlag's recommendations smile.gif


--------------------
we was young an' full of beans
Go to the top of the page
+Quote Post
knox
post Jun 1 2009, 09:58
Post #9





Group: Developer
Posts: 5
Joined: 11-December 03
Member No.: 10363



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!)

This post has been edited by knox: Jun 1 2009, 10:55
Go to the top of the page
+Quote Post
Peter
post Jun 1 2009, 10:12
Post #10


foobar2000 developer


Group: Admin
Posts: 3275
Joined: 30-September 01
Member No.: 84



Post editing privileges fixed.
Please use our uploads forum instead of external file hosting services.
Go to the top of the page
+Quote Post
knox
post Jun 1 2009, 10:55
Post #11





Group: Developer
Posts: 5
Joined: 11-December 03
Member No.: 10363



Thanks :) And I have done now.
Go to the top of the page
+Quote Post
solarlag
post Jun 1 2009, 11:43
Post #12





Group: Members
Posts: 21
Joined: 24-April 06
From: de/B
Member No.: 29963



thanks for the update, knox!
great component smile.gif
Go to the top of the page
+Quote Post
FavioD
post Jun 1 2009, 12:26
Post #13





Group: Members
Posts: 55
Joined: 7-March 07
Member No.: 41252



thanks
Go to the top of the page
+Quote Post
Thief
post Jun 2 2009, 15:07
Post #14





Group: Members
Posts: 16
Joined: 25-February 06
Member No.: 28043



This is what I ever wanted, thanks for making dream reality Sir knox!
Go to the top of the page
+Quote Post
Emcee
post Jun 6 2009, 14:10
Post #15





Group: Members
Posts: 42
Joined: 29-April 03
Member No.: 6272



A "Stop after Playback Queue" function would be nice (like in the outdated foo_uie_queuemanager)... rolleyes.gif
Go to the top of the page
+Quote Post
Emcee
post Aug 10 2009, 12:14
Post #16





Group: Members
Posts: 42
Joined: 29-April 03
Member No.: 6272



QUOTE (Emcee @ Jun 6 2009, 15:10) *
A "Stop after Playback Queue" function would be nice (like in the outdated foo_uie_queuemanager)... rolleyes.gif


foo_stop_after_queue-0.1 smile.gif

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

Thank you very much, Case!
Go to the top of the page
+Quote Post
jesus2099
post Dec 20 2011, 11:12
Post #17





Group: Members
Posts: 100
Joined: 13-December 06
From: Paris
Member No.: 38657



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) !

This post has been edited by jesus2099: Dec 20 2011, 11:14
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 31st July 2014 - 02:50