X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fjukebox.h;h=fe17f2e4a58f456338eff200046f577e80f61498;hb=6cc0f1735a00e8f9eb80ff0c9468fb67205f6d20;hp=2b4e0cdf7c6d1667db823b1973a521535d082321;hpb=abef5eab53c6c75cd602fdabdec94259d1523858;p=libs%2Fal.git diff --git a/source/jukebox.h b/source/jukebox.h index 2b4e0cd..fe17f2e 100644 --- a/source/jukebox.h +++ b/source/jukebox.h @@ -1,29 +1,26 @@ -/* $Id$ - -This file is part of libmspal -Copyright © 2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_AL_JUKEBOX_H_ #define MSP_AL_JUKEBOX_H_ #include #include +#include #include "source.h" #include "streamer.h" namespace Msp { namespace AL { -class Sound; +class SoundDecoder; class Jukebox { +public: + sigc::signal signal_track_changed; + private: Source source; Streamer streamer; - Sound *sound; + SoundDecoder *decoder; std::list tracks; std::list::iterator current_track; bool shuffle; @@ -36,10 +33,12 @@ public: void add_track(const std::string &); void remove_track(const std::string &); void clear_tracks(); + const std::string &get_current_track() const; void set_shuffle(bool); void play(); void next(); + void previous(); void stop(); void tick(); };