SpaceCadetPinballPPC/SpaceCadetPinball/Sound.h
Muzychenko Andrey c5b7c0ad16 Fixed some of the memory leaks and Clang warnings.
DrMemory and Valgrind work with regular debug builds.
2021-09-14 15:33:18 +03:00

19 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;
};