aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/isoundcombiner.h
blob: 8c90a29eaccc3407038e76ff0cca665e688f8170 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

#ifndef ISOUNDCOMBINER_H
#define ISOUNDCOMBINER_H
#ifdef _WIN32
#pragma once
#endif

#include "utlvector.h"

class IFileSystem;

struct CombinerEntry
{
	CombinerEntry()
	{
		wavefile[ 0 ] = 0;
		startoffset = 0.0f;
	}

	char	wavefile[ MAX_PATH ];
	float	startoffset;
};

abstract_class ISoundCombiner
{
public:
	virtual ~ISoundCombiner() {}

	virtual bool CombineSoundFiles( IFileSystem *filesystem, char const *outfile, CUtlVector< CombinerEntry >& info ) = 0;
	virtual bool IsCombinedFileChecksumValid( IFileSystem *filesystem, char const *outfile, CUtlVector< CombinerEntry >& info ) = 0;
};

extern ISoundCombiner *soundcombiner;

#endif // ISOUNDCOMBINER_H