Merge branch 'release_1'

This commit is contained in:
minenice55 2024-01-08 22:53:05 -05:00
commit be9a02d2a4
2 changed files with 2 additions and 1 deletions

View file

@ -108,7 +108,6 @@ namespace HeavenStudio
// ChangeAudioSettings(currentDspSize, currentSampleRate); // ChangeAudioSettings(currentDspSize, currentSampleRate);
AudioConfiguration config = AudioSettings.GetConfiguration(); AudioConfiguration config = AudioSettings.GetConfiguration();
if (currentDspSize == config.dspBufferSize && currentSampleRate == config.sampleRate) return;
config.dspBufferSize = currentDspSize; config.dspBufferSize = currentDspSize;
config.sampleRate = currentSampleRate; config.sampleRate = currentSampleRate;
AudioSettings.Reset(config); AudioSettings.Reset(config);

View file

@ -67,6 +67,8 @@ public static class SavWav
{ {
var wav = GetWav(clip, out var length, trim); var wav = GetWav(clip, out var length, trim);
writer.Write(wav, 0, (int)length); writer.Write(wav, 0, (int)length);
fileStream.Close();
fileStream.Dispose();
} }
} }