Re: [hatari-devel] AVI recording helpers usage

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 29/06/2025 à 19:41, Eero Tamminen a écrit :
Hi Nicolas,

On 25.6.2025 1.59, Eero Tamminen wrote:
Do following AVI recording helpers in the attached patches make sense to you?

(I would be using those helpers later on to extend my WIP autostart support also to AVI recording.)

If there are no objections within few days, I'll push them.


Hi

patch looks ok to me to be committed, except this one :

--- a/src/sound.c
+++ b/src/sound.c
@@ -1796,7 +1796,7 @@ void Sound_Update(uint64_t CPU_Clock)
 	Audio_Unlock();

 	/* Save to WAV file, if open */
-	if (bRecordingWav)
+	if (Avi_AreWeRecording())
 		WAVFormat_Update(AudioMixBuffer, pos_write_prev, Samples_Nbr);

Why replace bRecordingWav with Avi_AreWeRecording ? Maybe you changed this by mistake ?

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/