annotate MediaPlayer.h @ 2315:58be29479e75

add files
author Ritor1
date Wed, 19 Mar 2014 10:09:42 +0600
parents
children 182effc4b0ee
rev   line source
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
1 #pragma once
58be29479e75 add files
Ritor1
parents:
diff changeset
2
58be29479e75 add files
Ritor1
parents:
diff changeset
3 namespace Media
58be29479e75 add files
Ritor1
parents:
diff changeset
4 {
58be29479e75 add files
Ritor1
parents:
diff changeset
5 class ITrack
58be29479e75 add files
Ritor1
parents:
diff changeset
6 {
58be29479e75 add files
Ritor1
parents:
diff changeset
7 public: virtual void Play(bool loop = false) = 0;
58be29479e75 add files
Ritor1
parents:
diff changeset
8 };
58be29479e75 add files
Ritor1
parents:
diff changeset
9
58be29479e75 add files
Ritor1
parents:
diff changeset
10 class IMovie
58be29479e75 add files
Ritor1
parents:
diff changeset
11 {
58be29479e75 add files
Ritor1
parents:
diff changeset
12 public: virtual void Play() = 0;
58be29479e75 add files
Ritor1
parents:
diff changeset
13 virtual void GetNextFrame(double dt, void *target_surface) = 0;
58be29479e75 add files
Ritor1
parents:
diff changeset
14 };
58be29479e75 add files
Ritor1
parents:
diff changeset
15
58be29479e75 add files
Ritor1
parents:
diff changeset
16 class Player
58be29479e75 add files
Ritor1
parents:
diff changeset
17 {
58be29479e75 add files
Ritor1
parents:
diff changeset
18 public:
58be29479e75 add files
Ritor1
parents:
diff changeset
19 Player();
58be29479e75 add files
Ritor1
parents:
diff changeset
20 virtual ~Player();
58be29479e75 add files
Ritor1
parents:
diff changeset
21
58be29479e75 add files
Ritor1
parents:
diff changeset
22
58be29479e75 add files
Ritor1
parents:
diff changeset
23 ITrack *LoadTrack(const wchar_t *name);
58be29479e75 add files
Ritor1
parents:
diff changeset
24 IMovie *LoadMovie(const wchar_t *name, int width, int height, int cache_ms);
58be29479e75 add files
Ritor1
parents:
diff changeset
25 };
58be29479e75 add files
Ritor1
parents:
diff changeset
26 };