mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 00:09:18 +02:00
Set dp branch as trunk
This commit is contained in:
29
FadeSound.h
Normal file
29
FadeSound.h
Normal file
@@ -0,0 +1,29 @@
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user