Counter Strike : Global Offensive Source Code
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.

31 lines
899 B

  1. //===== Copyright � 2005-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: Helper methods + classes for sound
  4. //
  5. //===========================================================================//
  6. #ifndef SOUNDUTILS_H
  7. #define SOUNDUTILS_H
  8. #if defined( _WIN32 )
  9. #pragma once
  10. #endif
  11. #include "tier2/riff.h"
  12. //-----------------------------------------------------------------------------
  13. // RIFF reader/writers that use the file system
  14. //-----------------------------------------------------------------------------
  15. extern IFileReadBinary *g_pFSIOReadBinary;
  16. extern IFileWriteBinary *g_pFSIOWriteBinary;
  17. //-----------------------------------------------------------------------------
  18. // Returns the duration of a wav file
  19. //-----------------------------------------------------------------------------
  20. float GetWavSoundDuration( const char *pWavFile );
  21. #endif // SOUNDUTILS_H