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 /utils/scenemanager/iscenemanagersound.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/scenemanager/iscenemanagersound.h')
| -rw-r--r-- | utils/scenemanager/iscenemanagersound.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/utils/scenemanager/iscenemanagersound.h b/utils/scenemanager/iscenemanagersound.h new file mode 100644 index 0000000..28d620a --- /dev/null +++ b/utils/scenemanager/iscenemanagersound.h @@ -0,0 +1,45 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef ISCENEMANAGERSOUND_H +#define ISCENEMANAGERSOUND_H +#ifdef _WIN32 +#pragma once +#endif + +class CAudioSource; +class CAudioMixer; +class CAudioOuput; + +class ISceneManagerSound +{ +public: + + virtual void Init( void ) = 0; + virtual void Shutdown( void ) = 0; + virtual void Update( float time ) = 0; + virtual void Flush( void ) = 0; + + virtual CAudioSource *LoadSound( const char *wavfile ) = 0; + + virtual void PlaySound( const char *wavfile, CAudioMixer **ppMixer ) = 0; + + virtual void PlaySound( CAudioSource *source, CAudioMixer **ppMixer ) = 0; + + virtual bool IsSoundPlaying( CAudioMixer *pMixer ) = 0; + virtual CAudioMixer *FindMixer( CAudioSource *source ) = 0; + + virtual void StopAll( void ) = 0; + virtual void StopSound( CAudioMixer *mixer ) = 0; + + virtual CAudioOuput *GetAudioOutput( void ) = 0; + + virtual CAudioSource *FindOrAddSound( const char *filename ) = 0; +}; + +extern ISceneManagerSound *sound; + +#endif // ISCENEMANAGERSOUND_H |