mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 06:06:50 +00:00
41 lines
841 B
C++
41 lines
841 B
C++
//========= 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
|