summaryrefslogtreecommitdiff
path: root/utils/xbox/MakeGameData/resample.h
blob: 8382d7dd91c7c886de75edd6d9f5821c0cbe7347 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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