1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-11-11 04:43:44 +01:00
SpaceCadetPinball/SpaceCadetPinball/Sound.h

23 lines
552 B
C
Raw Normal View History

2020-11-06 16:56:32 +03:00
#pragma once
2021-01-23 19:28:29 +03:00
2020-11-06 16:56:32 +03:00
class Sound
2020-11-07 18:41:14 +03:00
{
public:
static bool Init(int channels, bool enableFlag, int volume);
static void Enable(bool enableFlag);
2020-12-02 20:12:34 +03:00
static void Activate();
static void Deactivate();
static void Close();
static void PlaySound(Mix_Chunk* wavePtr, int time);
static Mix_Chunk* LoadWaveFile(const std::string& lpName);
static void FreeSound(Mix_Chunk* wave);
static void SetChannels(int channels);
static void SetVolume(int volume);
2021-01-23 19:28:29 +03:00
private:
static int num_channels;
static bool enabled_flag;
static int* TimeStamps;
static int Volume;
2020-11-06 16:56:32 +03:00
};