]> git.tdb.fi Git - libs/al.git/blob - source/streamer.h
Add Streamer class
[libs/al.git] / source / streamer.h
1 /* $Id$
2
3 This file is part of libmspal
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_AL_STREAMER_H_
9 #define MSP_AL_STREAMER_H_
10
11 #include <list>
12 #include "source.h"
13
14 namespace Msp {
15 namespace AL {
16
17 class Sound;
18 class Buffer;
19
20 class Streamer
21 {
22 private:
23         Source &src;
24         Sound  *snd;
25         std::list<Buffer *> buffers;
26
27 public:
28         Streamer(Source &);
29         ~Streamer();
30
31         void play(Sound &);
32         void stop();
33         void tick();
34 };
35
36 } // namespace AL
37 } // namespace Msp
38
39 #endif