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.

40 lines
841 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef ISOUNDCOMBINER_H
  7. #define ISOUNDCOMBINER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "utlvector.h"
  12. class IFileSystem;
  13. struct CombinerEntry
  14. {
  15. CombinerEntry()
  16. {
  17. wavefile[ 0 ] = 0;
  18. startoffset = 0.0f;
  19. }
  20. char wavefile[ MAX_PATH ];
  21. float startoffset;
  22. };
  23. abstract_class ISoundCombiner
  24. {
  25. public:
  26. virtual ~ISoundCombiner() {}
  27. virtual bool CombineSoundFiles( IFileSystem *filesystem, char const *outfile, CUtlVector< CombinerEntry >& info ) = 0;
  28. virtual bool IsCombinedFileChecksumValid( IFileSystem *filesystem, char const *outfile, CUtlVector< CombinerEntry >& info ) = 0;
  29. };
  30. extern ISoundCombiner *soundcombiner;
  31. #endif // ISOUNDCOMBINER_H