Streamline initialization and splash screen code

Should be much less chance of beachballs on OSX
This commit is contained in:
2015-09-25 17:31:57 -04:00
parent fbe80b22dd
commit 3b647f33b2
9 changed files with 135 additions and 146 deletions

View File

@@ -38,7 +38,7 @@ std::unordered_map<int,int> sound_delay = {
};
short store_last_sound_played;
static bool sound_going(snd_num_t which_s) {
bool sound_going(snd_num_t which_s) {
short i;
for(i = 0; i < 4; i++)

View File

@@ -15,6 +15,7 @@ const int NUM_SOUNDS = 100;
typedef unsigned short snd_num_t;
void init_snd_tool();
bool sound_going(snd_num_t which_s);
void play_sound(short which, short how_many_times = 1);
void one_sound(short which);