Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
2303:c79896ff1a2d | 2304:b3832f73444f |
---|---|
416 break; | 416 break; |
417 case UI_RECORD_VIDEO: | 417 case UI_RECORD_VIDEO: |
418 if (allow_content_binds) { | 418 if (allow_content_binds) { |
419 if (render_saving_video()) { | 419 if (render_saving_video()) { |
420 render_end_video(); | 420 render_end_video(); |
421 render_end_audio(); | |
421 } else { | 422 } else { |
422 char *path = get_content_config_path("ui\0video_path\0", "ui\0video_template\0", "blastem_%c.apng"); | 423 char *path = get_content_config_path("ui\0video_path\0", "ui\0video_template\0", "blastem_%c.apng"); |
423 render_save_video(path); | 424 render_save_video(path); |
425 path = get_content_config_path("ui\0audio_path\0", "ui\0audio_template\0", "blastem_%c.wav"); | |
426 render_save_audio(path); | |
424 } | 427 } |
425 } | 428 } |
426 break; | 429 break; |
427 case UI_VGM_LOG: | 430 case UI_VGM_LOG: |
428 if (allow_content_binds && current_system->start_vgm_log) { | 431 if (allow_content_binds && current_system->start_vgm_log) { |