SpaceCadetPinball/SpaceCadetPinball/Sound.h

23 lines
552 B
C
Raw Normal View History

2020-11-06 14:56:32 +01:00
#pragma once
2021-01-23 17:28:29 +01:00
2020-11-06 14:56:32 +01:00
class Sound
2020-11-07 16:41:14 +01:00
{
public:
static bool Init(int channels, bool enableFlag, int volume);
static void Enable(bool enableFlag);
2020-12-02 18:12:34 +01: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 17:28:29 +01:00
private:
static int num_channels;
static bool enabled_flag;
static int* TimeStamps;
static int Volume;
2020-11-06 14:56:32 +01:00
};