Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef IREPLAYMOVIERENDERER_H
  5. #define IREPLAYMOVIERENDERER_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //----------------------------------------------------------------------------------------
  10. class IReplayMovie;
  11. struct RenderMovieParams_t;
  12. //----------------------------------------------------------------------------------------
  13. abstract_class IReplayMovieRenderer : public IBaseInterface
  14. {
  15. public:
  16. virtual bool SetupRenderer( RenderMovieParams_t &params, IReplayMovie *pMovie ) = 0;
  17. virtual void ShutdownRenderer() = 0;
  18. virtual void RenderVideo() = 0;
  19. virtual void RenderAudio( unsigned char *pBuffer, int nSize, int nNumSamples ) = 0;
  20. virtual void SetAudioSyncFrame( bool isSync = false ) = 0;
  21. virtual bool IsAudioSyncFrame() = 0;
  22. virtual float GetRecordingFrameDuration() = 0;
  23. };
  24. //----------------------------------------------------------------------------------------
  25. #endif // IREPLAYMOVIERENDERER_H