Add debugging output for playing sounds.

This commit is contained in:
Mark K. Kim 2018-06-26 22:59:24 -04:00
parent 19ae36662b
commit 1db3d431f5
2 changed files with 19 additions and 2 deletions

View file

@ -11841,6 +11841,17 @@ static int do_prompt_image_flash_snd(const char *const text,
int val_x, val_y, motioner;
int valhat_x, valhat_y, hatmotioner;
#ifdef DEBUG
if(snd >= 0) {
printf("Prompt and play sound #%d: %s\n", snd, sound_fnames[snd]);
fflush(stdout);
}
else {
printf("Prompt without sound\n");
fflush(stdout);
}
#endif
val_x = val_y = motioner = 0;
valhat_x = valhat_y = hatmotioner = 0;
emulate_button_pressed = 0;