extensions/sdktools/vsound.h
changeset 3515 c14c14e06cc1
parent 2289 44045ead61cd
child 3564 48c4e173997f
     1.1 --- a/extensions/sdktools/vsound.h	Sun May 27 11:39:50 2012 -0400
     1.2 +++ b/extensions/sdktools/vsound.h	Sun May 27 16:08:03 2012 -0400
     1.3 @@ -50,6 +50,17 @@
     1.4  	void Shutdown();
     1.5  	void AddHook(int type, IPluginFunction *pFunc);
     1.6  	bool RemoveHook(int type, IPluginFunction *pFunc);
     1.7 +#if SOURCE_ENGINE >= SE_PORTAL2
     1.8 +	void OnEmitAmbientSound(int entindex, const Vector &pos, const char *samp, float vol, soundlevel_t soundlevel, int fFlags, int pitch, float delay);
     1.9 +	int OnEmitSound(IRecipientFilter& filter, int iEntIndex, int iChannel, const char *, unsigned int, const char *pSample, float flVolume, 
    1.10 +		soundlevel_t iSoundlevel, int nSeed, int iFlags, int iPitch, const Vector *pOrigin, 
    1.11 +		const Vector *pDirection, CUtlVector<Vector> *pUtlVecOrigins, bool bUpdatePositions, 
    1.12 +		float soundtime, int speakerentity);
    1.13 +	int OnEmitSound2(IRecipientFilter &filter, int iEntIndex, int iChannel, const char *pSoundEntry, unsigned int nSoundEntryHash, const char *pSample, 
    1.14 +		float flVolume, float flAttenuation, int nSeed, int iFlags, int iPitch, const Vector *pOrigin, 
    1.15 +		const Vector *pDirection, CUtlVector<Vector> *pUtlVecOrigins, bool bUpdatePositions, 
    1.16 +		float soundtime, int speakerentity);
    1.17 +#else
    1.18  	void OnEmitAmbientSound(int entindex, const Vector &pos, const char *samp, float vol, 
    1.19  		soundlevel_t soundlevel, int fFlags, int pitch, float delay);
    1.20  	void OnEmitSound(IRecipientFilter& filter, int iEntIndex, int iChannel, const char *pSample, float flVolume, 
    1.21 @@ -60,6 +71,7 @@
    1.22  		float flAttenuation, int iFlags, int iPitch, const Vector *pOrigin, 
    1.23  		const Vector *pDirection, CUtlVector<Vector> *pUtlVecOrigins, bool bUpdatePositions, 
    1.24  		float soundtime, int speakerentity);
    1.25 +#endif
    1.26  private:
    1.27  	size_t _FillInPlayers(int *pl_array, IRecipientFilter *pFilter);
    1.28  	void _IncRefCounter(int type);