Skip to content

Commit

Permalink
Adjust buffer length and update period down to minimums
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Dec 26, 2023
1 parent b91b484 commit b328590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osu.Framework/Audio/AudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ protected virtual bool InitBass(int device)
return true;

// this likely doesn't help us but also doesn't seem to cause any issues or any cpu increase.
Bass.UpdatePeriod = 5;
Bass.UpdatePeriod = 1;

// reduce latency to a known sane minimum.
Bass.DeviceBufferLength = 10;
Expand Down
2 changes: 1 addition & 1 deletion osu.Framework/Threading/AudioThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private void initWasapi(int wasapiDevice)
}
});

bool initialised = BassWasapi.Init(wasapiDevice, Procedure: wasapiProcedure, Buffer: 0.02f, Period: 0.005f);
bool initialised = BassWasapi.Init(wasapiDevice, Procedure: wasapiProcedure, Buffer: 0.001f, Period: 0.001f);

if (!initialised)
return;
Expand Down

0 comments on commit b328590

Please sign in to comment.