Hello,
how would I check if the soundPlayer is currently in paused state? Here is a little example. I would like to toggle pause, without storing the current state myself.
Any pointers?
class ofApp :
public ofBaseApp {
public:
void setup(){
_soundPlayer.load("sample.mp3");
_soundPlayer.play();
}
void keyPressed(int key){
//there is no isPaused
if(_soundPlayer.isPlaying()){ //true, even if it is paused
_soundPlayer.setPaused(true);
}else{
//_soundPlayer.play();
_soundPlayer.setPaused(false);
}
}
ofSoundPlayer _soundPlayer;
};
int main(){
ofSetupOpenGL(1024, 768, OF_WINDOW);
ofRunApp(new ofApp());
}
Thomas