Soundcard Generate

* fix sound NULL record flush routine.
    . failed to force snd_file reference object to zero.
    . caused MALLOC error in snd_file library.
This commit is contained in:
dave-w1hkj 2025-08-04 01:51:29 -05:00 committed by dave-w1hkj
parent 8d95ca4a05
commit 7ae0a15430

View file

@ -2523,7 +2523,9 @@ size_t SoundNull::Read(float *buf, size_t count)
void SoundNull::flush(unsigned)
{
if (ofGenerate)
if (ofGenerate) {
sf_close(ofGenerate);
ofGenerate = 0;
}
}