mirror of
https://github.com/Gigaslav/HL2Overcharged.git
synced 2026-01-04 02:10:18 +03:00
40 lines
822 B
C++
40 lines
822 B
C++
#ifndef FMOD_MANAGER_H
|
|
#define FMOD_MANAGER_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
//#include "fmod.hpp"
|
|
#if 0
|
|
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
|
|
#endif //FMOD_MANAGER_H
|