summaryrefslogtreecommitdiff
path: root/utils/xbox/MakeGameData/resample.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/xbox/MakeGameData/resample.h')
-rw-r--r--utils/xbox/MakeGameData/resample.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/utils/xbox/MakeGameData/resample.h b/utils/xbox/MakeGameData/resample.h
new file mode 100644
index 0000000..8382d7d
--- /dev/null
+++ b/utils/xbox/MakeGameData/resample.h
@@ -0,0 +1,18 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef RESAMPLE_H
+#define RESAMPLE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+void DecimateSampleRateBy2_16( const short *pInputBuffer, short *pOutputBuffer, int sampleCount, int channelCount );
+void DecompressADPCMSamples( const byte *pFormatChunk, const byte *pDataChunk, int dataSize, short *pOutputBuffer );
+int ADPCMSampleCount( const byte *pFormatChunk, const byte *pDataChunk, int dataSize );
+void Convert8To16( const byte *pInputBuffer, short *pOutputBuffer, int sampleCount, int channelCount );
+
+#endif // RESAMPLE_H