diff MediaPlayer.h @ 2315:58be29479e75

add files
author Ritor1
date Wed, 19 Mar 2014 10:09:42 +0600
parents
children 182effc4b0ee
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MediaPlayer.h	Wed Mar 19 10:09:42 2014 +0600
@@ -0,0 +1,26 @@
+#pragma once
+
+namespace Media
+{
+  class ITrack
+  {
+    public: virtual void Play(bool loop = false) = 0;
+  };
+
+  class IMovie
+  {
+    public: virtual void Play() = 0;
+            virtual void GetNextFrame(double dt, void *target_surface) = 0;
+  };
+
+  class Player
+  {
+    public:
+               Player();
+      virtual ~Player();
+
+
+      ITrack *LoadTrack(const wchar_t *name);
+      IMovie *LoadMovie(const wchar_t *name, int width, int height, int cache_ms);
+  };
+};
\ No newline at end of file