Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to find out the index of next track... (Read 2747 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to find out the index of next track...

Hi!
Basically, I want to emulate the functionality of "next track", but without playing the next track, just return the index of the next track or -1 if there isn't any next track (by next track I mean what foobar would have played next and not by playlist index).

How to find out the index of next track...

Reply #1
Example from the foo_temple source:

Code: [Select]
    unsigned idx = playback_order_helper::get_index_from_name(cfg_old_flow);
   playback_flow_control * ptr = service_enum_create_t(playback_flow_control,idx);
   int pos = ptr->get_next(previous_index, focus_item, total, advance, follow_focus, user_advance, playlist);
   ptr->service_release();

How to find out the index of next track...

Reply #2
Thank you very much!