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 /public/isoundcombiner.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/isoundcombiner.h')
| -rw-r--r-- | public/isoundcombiner.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/public/isoundcombiner.h b/public/isoundcombiner.h new file mode 100644 index 0000000..8c90a29 --- /dev/null +++ b/public/isoundcombiner.h @@ -0,0 +1,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 |