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: play_control from different thread (Read 2101 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

play_control from different thread

i have a multithreaded component and want to control foobar.
play_control::get()->play_stop();
is obviously not the way to go, as play_control is not multithreading-safe.
would
menu_manager::run_command("Playback/Next");
work? is it available in all possible foobar installations? or do i have to do a ShellExecute() which i think would have quite some overhead?