]> git.tdb.fi Git - libs/al.git/blobdiff - source/jukebox.h
Split Sound into SoundDecoder and Waveform parts
[libs/al.git] / source / jukebox.h
index 85a2b03201280e172e24828bf29b0771ad32c7ec..fe17f2e4a58f456338eff200046f577e80f61498 100644 (file)
@@ -1,10 +1,3 @@
-/* $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_
 
@@ -17,7 +10,7 @@ Distributed under the LGPL
 namespace Msp {
 namespace AL {
 
-class Sound;
+class SoundDecoder;
 
 class Jukebox
 {
@@ -27,7 +20,7 @@ public:
 private:
        Source source;
        Streamer streamer;
-       Sound *sound;
+       SoundDecoder *decoder;
        std::list<std::string> tracks;
        std::list<std::string>::iterator current_track;
        bool shuffle;
@@ -45,6 +38,7 @@ public:
 
        void play();
        void next();
+       void previous();
        void stop();
        void tick();
 };