diff bindings.c @ 2304:b3832f73444f

Save audio to a wave file when saving video to APNG
author Michael Pavone <pavone@retrodev.com>
date Wed, 15 Mar 2023 18:50:24 -0700
parents eb45ad9d8a3f
children 62f316b76e9a
line wrap: on
line diff
--- a/bindings.c	Wed Mar 15 18:49:47 2023 -0700
+++ b/bindings.c	Wed Mar 15 18:50:24 2023 -0700
@@ -418,9 +418,12 @@
 			if (allow_content_binds) {
 				if (render_saving_video()) {
 					render_end_video();
+					render_end_audio();
 				} else {
 					char *path = get_content_config_path("ui\0video_path\0", "ui\0video_template\0", "blastem_%c.apng");
 					render_save_video(path);
+					path = get_content_config_path("ui\0audio_path\0", "ui\0audio_template\0", "blastem_%c.wav");
+					render_save_audio(path);
 				}
 			}
 			break;