comparison render_audio.c @ 2553:35f765c2bc87

Fix a couple of bugs with AV recording
author Michael Pavone <pavone@retrodev.com>
date Sat, 11 Jan 2025 17:35:15 -0800
parents b3832f73444f
children
comparison
equal deleted inserted replaced
2552:f35109ae45f6 2553:35f765c2bc87
23 void render_end_audio(void) 23 void render_end_audio(void)
24 { 24 {
25 render_lock_audio(); 25 render_lock_audio();
26 if (wav_file) { 26 if (wav_file) {
27 wave_finalize(wav_file); 27 wave_finalize(wav_file);
28 fclose(wav_file);
29 wav_file = NULL; 28 wav_file = NULL;
30 } 29 }
31 render_unlock_audio(); 30 render_unlock_audio();
32 } 31 }
33 32