mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-07 16:50:15 +02:00
Sound: added channel recycling.
Added sound channel count (aka voices) user option. Added 3DPB font to sprite viewer. Added version number to about dialog.
This commit is contained in:
parent
d80074b9b6
commit
43593b168d
8 changed files with 137 additions and 87 deletions
|
@ -42,9 +42,9 @@ struct optionsStruct
|
|||
{
|
||||
ControlsStruct Key;
|
||||
ControlsStruct KeyDft;
|
||||
int Sounds;
|
||||
int Music;
|
||||
int FullScreen;
|
||||
bool Sounds;
|
||||
bool Music;
|
||||
bool FullScreen;
|
||||
int Players;
|
||||
int Resolution;
|
||||
bool UniformScaling;
|
||||
|
@ -53,6 +53,7 @@ struct optionsStruct
|
|||
int UpdatesPerSecond;
|
||||
bool ShowMenu;
|
||||
bool UncappedUpdatesPerSecond;
|
||||
int SoundChannels;
|
||||
};
|
||||
|
||||
struct ControlRef
|
||||
|
@ -68,6 +69,8 @@ public:
|
|||
// Original does ~120 updates per second.
|
||||
static constexpr int MaxUps = 360, MaxFps = MaxUps, MinUps = 60, MinFps = MinUps,
|
||||
DefUps = 120, DefFps = 60;
|
||||
// Original uses 8 sound channels
|
||||
static constexpr int MaxSoundChannels = 32, MinSoundChannels = 1, DefSoundChannels = 8;
|
||||
static optionsStruct Options;
|
||||
|
||||
static void init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue