question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Follow points don't respect audio device offset

See original GitHub issue

Basically if you change your global audio offset to like 200ms all follow points between circles won’t be delayed with the circles.

I managed to find out that I need to add the offset (eg 200ms offset -> + 200) to these two variables (or just add to starttime, but I think those make a bit more sense): https://github.com/ppy/osu/blob/master/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointRenderer.cs#L84-L85

However it seems like getting the raw settings value is not used by anything, so I wouldn’t use that. I managed to find out that Player.cs creates an offset clock wrapping some other clock which presumably does something, but there doesn’t seem to be any way to get that instance as it has been recently refactored into a local variable and just passed via a constructor to other fields. I couldn’t find any way to pass that Clock to the OsuPlayfield.cs which creates the FollowPointRenderer from the Player.cs without major refactoring. There are several classes depending on OsuPlayfield, so changing the default constructor would not be an option.

I just added a constant + 200 for my game there because it resembles my settings, maybe this will help someone else who has a problem with the follow points.

TLDR: if you use an audio offset, edit these two lines linked above and add your offset to them for nice follow points.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
WebFreak001commented, Mar 29, 2018

ok update: I managed to finally make it work by doing this, so if you are on archlinux this might help you:

  • uninstall dotnet, nuget4, nuget5, dotnet-host, dotnet-runtime, dotnet-sdk, they all interfere with the build process
  • install mono and msbuild-stable, delete all other msbuild packages you might have
  • do a fresh recursive clone of osu, rm -rf ~/.nuget, nuget restore
  • export TERM=xterm before build in case you get weird console magic number mismatch errors
  • msbuild /p:Configuration=Release or msbuild /p:Configuration=Debug
  • mono osu.Desktop/bin/Release/net461/osu!.exe
0reactions
WebFreak001commented, Mar 30, 2018

hm I guess this is rather a new design decision rather than there being an offset, it’s not a big gameplay issue, but for me it felt a lot better if I added a bit of offset to the follow points using that code up there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The addition of offset on ps4 Respect is killing my desire to ...
Any audio one hears must have been decoded at some point. Optical audio straight from the PS4 will have the minimum delay possible,...
Read more >
Respect V (steam) Audio offset, again : r/djmax
I really love DJ Max, I don't really want to stop playing it bc of an offset issue, but it's too frustrating. Thx...
Read more >
Default Playback devices are not retaining their settings.
Hello, I'm having an issue with laptops after upgrading to Windows 10. I set the default playback device and the default communications ...
Read more >
How to Estimate Delay and Level Offset Between Speakers ...
Once you have defined the on-axis (ONAX) point for source A and source B, match their levels, then walk in a line between...
Read more >
Volume Offset Control Service | Bluetooth® Technology Website
This service enables a device to expose the volume offset of an audio output. 1.1. Conformance. If conformance to this specification is claimed,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found