Fmod manager.h: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
|  (Created page with '<pre> #ifndef FMOD_MANAGER_H #define FMOD_MANAGER_H #ifdef _WIN32 #pragma once #endif  #include "fmod.hpp"  class CFMODManager { public: 	CFMODManager(); 	~CFMODManager();   	voi…') | Le Glaconus (talk | contribs)  mNo edit summary | ||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| < | <source lang=cpp> | ||
| #ifndef FMOD_MANAGER_H | #ifndef FMOD_MANAGER_H | ||
| #define FMOD_MANAGER_H | #define FMOD_MANAGER_H | ||
| Line 40: | Line 40: | ||
| #endif //FMOD_MANAGER_H | #endif //FMOD_MANAGER_H | ||
| </ | </source> | ||
| ==See also== | |||
| *[[Fmod manager.cpp]] | |||
| [[Category:Programming]] | |||
Latest revision as of 12:15, 5 June 2025
#ifndef FMOD_MANAGER_H
#define FMOD_MANAGER_H
#ifdef _WIN32
#pragma once
#endif
#include "fmod.hpp"
class CFMODManager
{
public:
	CFMODManager();
	~CFMODManager();
 
	void InitFMOD();
	void ExitFMOD();
	void FadeThink();
	bool IsSoundPlaying( const char* pathToFileFromSoundsFolder );
	void PlayAmbientSound( const char* pathToFileFromSoundsFolder, bool fadeIn );
	void StopAmbientSound( bool fadeOut );
	void TransitionAmbientSounds( const char* pathToFileFromSoundsFolder );
private:
	const char* GetFullPathToSound( const char* pathToFileFromModFolder );
	const char* GetCurrentSoundName( void );
	const char* currentSound;
	const char* newSoundFileToTransitionTo;
	bool m_bShouldTransition;
	bool m_bFadeIn;
	bool m_bFadeOut;
	float m_fFadeDelay;
};
 
extern CFMODManager* FMODManager();
 
#endif //FMOD_MANAGER_H