mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-17 23:20:19 +01:00
c5b7c0ad16
DrMemory and Valgrind work with regular debug builds.
18 lines
490 B
C++
18 lines
490 B
C++
#pragma once
|
|
|
|
|
|
class Sound
|
|
{
|
|
public:
|
|
static int Init(int voices);
|
|
static void Enable(int channelFrom, int channelTo, int enableFlag);
|
|
static void Activate();
|
|
static void Deactivate();
|
|
static void Close();
|
|
static void PlaySound(Mix_Chunk* wavePtr, int minChannel, int maxChannel, unsigned int dwFlags, int16_t loops);
|
|
static Mix_Chunk* LoadWaveFile(std::string lpName);
|
|
static void FreeSound(Mix_Chunk* wave);
|
|
private:
|
|
static int num_channels;
|
|
static unsigned int enabled_flag;
|
|
};
|