Help - Search - Members - Calendar
Full Version: play_control::get()->is_playing()
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Kreisquadratur
I'm writing a plugin in which I need to check if the current playstate is PLAY or not. So I use this line of Code:
CODE
if (play_control::get()->is_playing()) ...
This check works fine for the playstates PLAY(true) and STOP(false). But it also returns true, if the playstate is PAUSE.
Is this intended? What else function can I use to check is playstate is PLAY, and I mean ONLY PLAY...
foosion
CODE
play_control * pc = play_control::get();
if (pc->is_playing() && !pc->is_paused()) ...
Kreisquadratur
Ah, ok. I see. Simple solution (to simple problem I guess wink.gif ).

Many thanks.
hartwork
what are you working on? a user interface?

ps: you're a student of mathematics, right?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.