mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
30 lines
741 B
C++
30 lines
741 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
|