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.

34 lines
731 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef VOICE_WAVEFILE_H
  8. #define VOICE_WAVEFILE_H
  9. #pragma once
  10. // Load in a wave file. This isn't very flexible and is only guaranteed to work with files
  11. // saved with WriteWaveFile.
  12. bool ReadWaveFile(
  13. const char *pFilename,
  14. char *&pData,
  15. int &nDataBytes,
  16. int &wBitsPerSample,
  17. int &nChannels,
  18. int &nSamplesPerSec);
  19. // Write out a wave file.
  20. bool WriteWaveFile(
  21. const char *pFilename,
  22. const char *pData,
  23. int nBytes,
  24. int wBitsPerSample,
  25. int nChannels,
  26. int nSamplesPerSec);
  27. #endif // VOICE_WAVEFILE_H