Logged out

An open-source, not-for-profit community project to document, tag and categorize every asset for VR social games such as VRChat, ChilloutVR and Resonite since 2020...

Read More
Thumbnail for asset

I made this from scratch to tackle a few distinct issues my worlds have.

  • Audio Voice Virtualization Limit is pathetically low on Mobile, I don't want to use 1 source per track
  • I want AudioLink! Gimme.
  • I want an arbitrary number of non-conflicting reasons my music is muted! (It's a Boolean[]!!)
  • I want UTC Time Sync*
  • varying fade times per trigger

The way my system works is that a Trigger asks the script to change to any AudioClip, and it copies the current Audio Source state to a 2nd AudioSource that's dedicated to fading out the previous track, and the main source fades in the new one. It's simple on paper, but it still took me a week to implement.

"I get basically everything here, but what the H is 'UTC Time Sync'??" glad you asked! When this is enabled, the music playback time will take the time since midnight UTC and attempt to sync the music to that. This is a form of sync that doesn't rely on networking! It feels like magic.

I'm not sure how useful it'll be to anyone other than myself, but I don't care so I'm sharing it anyways. Who knows?

If you find this useful, uh, you're welcome ig. Sorry if it's janky.

PS. I really want to be able to make the Mute Conditions array work with ProTV's world music muting but I can't be bothered to implement it. If you care to do it, in theory all you have to do is replace ProTV's code that sets the volume of an audio source with setting an index in the mute Boolean[]. shouldn't be too hard if you know C#/U# (I don't...)

Click to expand description
No comments found
No reviews found
Submitted by 4Bakers