mirror of
https://github.com/iAmInActions/SpaceCadetPinballPPC.git
synced 2025-02-16 14:50:11 +00:00
Added sound channel count (aka voices) user option. Added 3DPB font to sprite viewer. Added version number to about dialog.
21 lines
484 B
C++
21 lines
484 B
C++
#pragma once
|
|
|
|
|
|
class Sound
|
|
{
|
|
public:
|
|
static bool Init(int channels, bool enableFlag);
|
|
static void Enable(bool enableFlag);
|
|
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);
|
|
private:
|
|
static int num_channels;
|
|
static bool enabled_flag;
|
|
static int* TimeStamps;
|
|
};
|