home *** CD-ROM | disk | FTP | other *** search
/ Geek 6 / Geek-006.iso / linux / video / xmovie-1.5.3.tar.gz / xmovie-1.5.3.tar / xmovie-1.5.3 / xmovie / playbackengine.h < prev    next >
C/C++ Source or Header  |  2000-11-29  |  835b  |  44 lines

  1. #ifndef PLAYBACKENGINE_H
  2. #define PLAYBACKENGINE_H
  3.  
  4. #include "arender.inc"
  5. #include "mainwindow.inc"
  6. #include "mwindowgui.inc"
  7. #include "mutex.h"
  8. #include "thread.h"
  9. #include "timer.h"
  10. #include "vrender.inc"
  11.  
  12.  
  13. class PlaybackEngine : public Thread
  14. {
  15. public:
  16.     PlaybackEngine(MainWindow *mwindow);
  17.     ~PlaybackEngine();
  18.  
  19.     void run();
  20.  
  21.     int reset_parameters();
  22.     int start_playback();
  23.     int stop_playback();   // interrupt while playing
  24.     int close_playback();  // normal ending
  25.     int wait_for_startup();
  26.     int current_position(double &percentage, double &seconds);
  27.     long PlaybackEngine::current_sample();
  28.  
  29.     int playing_back;
  30.     ARender *arender;
  31.     VRender *vrender;
  32.     PlaybackScroll *scroll;
  33.     MainWindow *mwindow;
  34.     Mutex startup_lock;
  35.     Mutex complete;
  36.     Timer timer;
  37.     long starting_sample;  // Starting sample for audio-only positioning
  38. };
  39.  
  40.  
  41.  
  42.  
  43. #endif
  44.