diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/audio/private/voice_wavefile.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'engine/audio/private/voice_wavefile.h')
| -rw-r--r-- | engine/audio/private/voice_wavefile.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/engine/audio/private/voice_wavefile.h b/engine/audio/private/voice_wavefile.h new file mode 100644 index 0000000..08afe86 --- /dev/null +++ b/engine/audio/private/voice_wavefile.h @@ -0,0 +1,34 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef VOICE_WAVEFILE_H +#define VOICE_WAVEFILE_H +#pragma once + + +// Load in a wave file. This isn't very flexible and is only guaranteed to work with files +// saved with WriteWaveFile. +bool ReadWaveFile( + const char *pFilename, + char *&pData, + int &nDataBytes, + int &wBitsPerSample, + int &nChannels, + int &nSamplesPerSec); + + +// Write out a wave file. +bool WriteWaveFile( + const char *pFilename, + const char *pData, + int nBytes, + int wBitsPerSample, + int nChannels, + int nSamplesPerSec); + + +#endif // VOICE_WAVEFILE_H |