Streamline initialization and splash screen code
Should be much less chance of beachballs on OSX
This commit is contained in:
@@ -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++)
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user