mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-13 21:25:09 +00:00
(hopefully) fix controllers not being initialized with certain settings
This commit is contained in:
parent
a8c41b779d
commit
e2070c5fa3
3 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -158,7 +158,6 @@ namespace HeavenStudio
|
||||||
foreach (InputController i in inputDevices)
|
foreach (InputController i in inputDevices)
|
||||||
{
|
{
|
||||||
if (i == null) continue;
|
if (i == null) continue;
|
||||||
Debug.Log($"Polling controller {i.GetDeviceName()} (frame {Time.frameCount})");
|
|
||||||
i.UpdateState();
|
i.UpdateState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue