mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-12-07 21:00:59 +01:00
parent
43af97127b
commit
0a2d6847ba
8 changed files with 99 additions and 46 deletions
|
|
@ -4,7 +4,7 @@
|
|||
class Sound
|
||||
{
|
||||
public:
|
||||
static bool Init(int channels, bool enableFlag);
|
||||
static bool Init(int channels, bool enableFlag, int volume);
|
||||
static void Enable(bool enableFlag);
|
||||
static void Activate();
|
||||
static void Deactivate();
|
||||
|
|
@ -13,8 +13,10 @@ public:
|
|||
static Mix_Chunk* LoadWaveFile(const std::string& lpName);
|
||||
static void FreeSound(Mix_Chunk* wave);
|
||||
static void SetChannels(int channels);
|
||||
static void SetVolume(int volume);
|
||||
private:
|
||||
static int num_channels;
|
||||
static bool enabled_flag;
|
||||
static int* TimeStamps;
|
||||
static int Volume;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue