After some testing with Sulker, ive improved it a bit. Link updated in my first post.
The volume change will trigger when osu!.exe starts using more than 100mb of RAM.
The volume change will trigger when osu!.exe starts using more than 100mb of RAM.