Updated ISoundEmitterSystemBase (bug 5452).

This commit is contained in:
Nicholas Hastings 2013-02-14 08:20:45 -05:00
parent 77b5b65e80
commit 3e517c314a

View File

@ -25,6 +25,7 @@
typedef short HSOUNDSCRIPTHANDLE;
#define SOUNDEMITTER_INVALID_HANDLE (HSOUNDSCRIPTHANDLE)-1
class IFileList;
//-----------------------------------------------------------------------------
// Purpose:
@ -253,13 +254,15 @@ public:
// Called from both client and server (single player) or just one (server only in dedicated server and client only if connected to a remote server)
// Called by LevelInitPreEntity to override sound scripts for the mod with level specific overrides based on custom mapnames, etc.
virtual void AddSoundOverrides( char const *scriptfile ) = 0;
virtual void AddSoundOverrides( char const *scriptfile, bool bUnknown ) = 0;
// Called by either client or server in LevelShutdown to clear out custom overrides
virtual void ClearSoundOverrides() = 0;
virtual bool GetParametersForSoundEx( const char *soundname, HSOUNDSCRIPTHANDLE& handle, CSoundParameters& params, gender_t gender, bool isbeingemitted = false ) = 0;
virtual soundlevel_t LookupSoundLevelByHandle( char const *soundname, HSOUNDSCRIPTHANDLE& handle ) = 0;
virtual void ReloadSoundEntriesInList( IFileList *pFileList ) = 0;
};
#endif // ISOUNDEMITTERSYSTEMBASE_H