mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 21:55:09 +00:00
Merge branch 'release_1'
This commit is contained in:
commit
f6893042ad
2 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,6 @@ namespace HeavenStudio
|
|||
|
||||
// ChangeAudioSettings(currentDspSize, currentSampleRate);
|
||||
AudioConfiguration config = AudioSettings.GetConfiguration();
|
||||
if (currentDspSize == config.dspBufferSize && currentSampleRate == config.sampleRate) return;
|
||||
config.dspBufferSize = currentDspSize;
|
||||
config.sampleRate = currentSampleRate;
|
||||
AudioSettings.Reset(config);
|
||||
|
|
|
@ -67,6 +67,8 @@ public static class SavWav
|
|||
{
|
||||
var wav = GetWav(clip, out var length, trim);
|
||||
writer.Write(wav, 0, (int)length);
|
||||
fileStream.Close();
|
||||
fileStream.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue