summaryrefslogtreecommitdiff
path: root/engine/audio/private/voice_wavefile.h
diff options
context:
space:
mode:
Diffstat (limited to 'engine/audio/private/voice_wavefile.h')
-rw-r--r--engine/audio/private/voice_wavefile.h34
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