]> git.tdb.fi Git - xinema.git/blob - source/xinestream.h
Refactor code to have the engine tick any streams
[xinema.git] / source / xinestream.h
1 #ifndef XINESTREAM_H_
2 #define XINESTREAM_H_
3
4 #include <string>
5 #include <xine.h>
6
7 class XineEngine;
8
9 class XineStream
10 {
11 private:
12         XineEngine &engine;
13         xine_stream_t *stream;
14         xine_event_queue_t *queue;
15
16 public:
17         XineStream(XineEngine &, const std::string &);
18         ~XineStream();
19
20         void play();
21         void stop();
22
23         void tick();
24 private:
25         void handle_event(const xine_event_t &);
26 };
27
28 #endif