include/beeps/sound.h in beeps-0.1.40 vs include/beeps/sound.h in beeps-0.1.41

- old
+ new

@@ -18,10 +18,23 @@ class SoundPlayer { public: + enum State + { + + STATE_UNKNOWN = 0, + + PLAYING, + + PAUSED, + + STOPPED + + };// State + SoundPlayer (); ~SoundPlayer (); void play (); @@ -30,14 +43,10 @@ void rewind (); void stop (); - bool is_playing () const; - - bool is_paused () const; - - bool is_stopped () const; + State state () const; void set_gain (float gain); float gain () const;