mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 18:39:18 +02:00
Format source code using clang-format
This commit is contained in:
64
Sound.h
64
Sound.h
@@ -14,47 +14,49 @@
|
||||
|
||||
typedef LPDIRECTSOUNDBUFFER PSound;
|
||||
|
||||
//inline __fastcall Playing(PSound Sound)
|
||||
// inline __fastcall Playing(PSound Sound)
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
class TSoundContainer
|
||||
{
|
||||
public:
|
||||
int Concurrent;
|
||||
int Oldest;
|
||||
char Name[80];
|
||||
LPDIRECTSOUNDBUFFER DSBuffer;
|
||||
float fSamplingRate; //czêstotliwoœæ odczytana z pliku
|
||||
int iBitsPerSample; //ile bitów na próbkê
|
||||
TSoundContainer *Next;
|
||||
std::stack< LPDIRECTSOUNDBUFFER > DSBuffers;
|
||||
LPDIRECTSOUNDBUFFER __fastcall GetUnique(LPDIRECTSOUND pDS);
|
||||
__fastcall TSoundContainer(LPDIRECTSOUND pDS, char *Directory, char *strFileName, int NConcurrent);
|
||||
__fastcall ~TSoundContainer();
|
||||
public:
|
||||
int Concurrent;
|
||||
int Oldest;
|
||||
char Name[80];
|
||||
LPDIRECTSOUNDBUFFER DSBuffer;
|
||||
float fSamplingRate; // czêstotliwoœæ odczytana z pliku
|
||||
int iBitsPerSample; // ile bitów na próbkê
|
||||
TSoundContainer *Next;
|
||||
std::stack<LPDIRECTSOUNDBUFFER> DSBuffers;
|
||||
LPDIRECTSOUNDBUFFER __fastcall GetUnique(LPDIRECTSOUND pDS);
|
||||
__fastcall TSoundContainer(LPDIRECTSOUND pDS, char *Directory, char *strFileName,
|
||||
int NConcurrent);
|
||||
__fastcall ~TSoundContainer();
|
||||
};
|
||||
|
||||
|
||||
class TSoundsManager
|
||||
{
|
||||
private:
|
||||
static LPDIRECTSOUND pDS;
|
||||
static LPDIRECTSOUNDNOTIFY pDSNotify;
|
||||
// static char Directory[80];
|
||||
static int Count;
|
||||
static TSoundContainer *First;
|
||||
static TSoundContainer* __fastcall LoadFromFile(char *Dir,char *Name,int Concurrent);
|
||||
public:
|
||||
// __fastcall TSoundsManager(HWND hWnd);
|
||||
// static void __fastcall Init(HWND hWnd, char *NDirectory);
|
||||
static void __fastcall Init(HWND hWnd);
|
||||
__fastcall ~TSoundsManager();
|
||||
static void __fastcall Free();
|
||||
static void __fastcall Init(char *Name, int Concurrent);
|
||||
static void __fastcall LoadSounds(char *Directory);
|
||||
static LPDIRECTSOUNDBUFFER __fastcall GetFromName(char *Name,bool Dynamic,float *fSamplingRate=NULL);
|
||||
static void __fastcall RestoreAll();
|
||||
private:
|
||||
static LPDIRECTSOUND pDS;
|
||||
static LPDIRECTSOUNDNOTIFY pDSNotify;
|
||||
// static char Directory[80];
|
||||
static int Count;
|
||||
static TSoundContainer *First;
|
||||
static TSoundContainer *__fastcall LoadFromFile(char *Dir, char *Name, int Concurrent);
|
||||
|
||||
public:
|
||||
// __fastcall TSoundsManager(HWND hWnd);
|
||||
// static void __fastcall Init(HWND hWnd, char *NDirectory);
|
||||
static void __fastcall Init(HWND hWnd);
|
||||
__fastcall ~TSoundsManager();
|
||||
static void __fastcall Free();
|
||||
static void __fastcall Init(char *Name, int Concurrent);
|
||||
static void __fastcall LoadSounds(char *Directory);
|
||||
static LPDIRECTSOUNDBUFFER __fastcall GetFromName(char *Name, bool Dynamic,
|
||||
float *fSamplingRate = NULL);
|
||||
static void __fastcall RestoreAll();
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user