Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef ISCENEMANAGERSOUND_H
  7. #define ISCENEMANAGERSOUND_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class CAudioSource;
  12. class CAudioMixer;
  13. class CAudioOuput;
  14. class ISceneManagerSound
  15. {
  16. public:
  17. virtual void Init( void ) = 0;
  18. virtual void Shutdown( void ) = 0;
  19. virtual void Update( float time ) = 0;
  20. virtual void Flush( void ) = 0;
  21. virtual CAudioSource *LoadSound( const char *wavfile ) = 0;
  22. virtual void PlaySound( const char *wavfile, CAudioMixer **ppMixer ) = 0;
  23. virtual void PlaySound( CAudioSource *source, CAudioMixer **ppMixer ) = 0;
  24. virtual bool IsSoundPlaying( CAudioMixer *pMixer ) = 0;
  25. virtual CAudioMixer *FindMixer( CAudioSource *source ) = 0;
  26. virtual void StopAll( void ) = 0;
  27. virtual void StopSound( CAudioMixer *mixer ) = 0;
  28. virtual CAudioOuput *GetAudioOutput( void ) = 0;
  29. virtual CAudioSource *FindOrAddSound( const char *filename ) = 0;
  30. };
  31. extern ISceneManagerSound *sound;
  32. #endif // ISCENEMANAGERSOUND_H