Files
maszyna/FadeSound.h
2015-04-03 22:01:10 +08:00

30 lines
749 B
C++

//---------------------------------------------------------------------------
#ifndef FadeSoundH
#define FadeSoundH
#include "Sound.h"
#include "AdvSound.h"
class TFadeSound
{
PSound Sound;
float fFade;
float dt, fTime;
TSoundState State;
public:
__fastcall TFadeSound();
__fastcall ~TFadeSound();
void __fastcall Init(char *Name, float fNewFade);
void __fastcall TurnOn();
void __fastcall TurnOff();
bool __fastcall Playing() { return (State == ss_Commencing || State == ss_Starting); };
void __fastcall Free();
void __fastcall Update();
void __fastcall Volume(long vol);
};
//---------------------------------------------------------------------------
#endif