Audio Track
Synchronize Timeflow to a soundtrack
Last updated
Synchronize Timeflow to a soundtrack
Last updated
Provides an audio source for Timeflow to synchronize to. Most often a single audio track is used for each scene, however multiple audio tracks may be added to play simultaneously.
Be aware that audio playback is device dependent and while it shouldn't pose any issues generally, on some devices with lower performance audio may fail or lose sync with Timeflow.
It is strongly advised to test audio playback and synchronization on target devices early on.
Select the object to view its settings in the Inspector.
When a new Audio Track is created, it will be necessary to assign the Audio Clip asset. Select an audio file in the Project view and drag and drop it into the Audio Clip field. This can also be set on the Audio Source component.
Use the playback buttons to preview the audio. This does not play the Timeflow view and is only for listening purposes.
Sets the total duration Timeflow to match the audio clip length.
Use this to quickly match the Timeflow duration to the soundtrack audio.
Audio may be muted to make it inaudible in both edit mode and at runtime.
This directly sets Mute on the Audio Source. When muted, Timeflow continues to play normally however is no longer synched to the audio. Once the audio is unmuted, synchronization is reestablished.
To mute audio in the Unity editor only (without affecting audio playback or synchronization) use the mute button toggle in the Game View.
Select one of the following methods of synchronizing audio with Timeflow playback.
No attempt is made to synchronize audio other than starting playback at the start time. In a perfect world, playing audio and animation starting at the same time would remain in sync, however in the real world drift can occur causing noticeable loss of synchronization over time.
This is the default option and forces Timeflow to match audio playback.
Only 1 Audio Track may be synchronized with each Timeflow instance.
Use this mode to synchronize additional audio tracks to the primary one. Since Timeflow can only be synchronized to 1 audio track, this offers a way to synchronize additional tracks to the primary.
Defines the time in seconds sync can be out of step before recalibrating. The larger the time value, the more allowance there is for synchronization to slip, however too low of a setting can cause skipping animation playback.
If the default tolerance setting doesn't work, it may require some experimentation.
If the sync tolerance is set too low, it may trigger continuous skipping in the animation playback as Timeflow keeps adjusting time to match the audio. This is where specific devices may cause issues if the reported audio time is inaccurate. This has been seen on some older Android devices with low quality audio hardware.
If this setting is disabled and time scale has a value other than 1, the audio will lose sync with Timeflow as it continues to play at normal speed and pitch, while animation plays faster or slower according to the time scale.
This multiplies the audio playback speed to slow or speed it up. This can be used with or without Global Time Scale enabled.
Determines whether the audio track channel is displayed in the Timeflow view. This is only a display setting and has no effect on audio behavior. This option can be turned off if you don't need the visual audio reference.
If enabled, the audio waveform is drawn in the Timeflow view.
Audio Track does not support custom since it isn't related to audio.
For common features, please refer to .
References the component, usually on the same game object.
Displays the assigned . This is the same as the field shown in Audio Source and is displayed in the Audio Track inspector as a shortcut. To assign an audio clip, select an audio file and drag and drop it into the Audio Clip field.
When enabled, this changes the audio speed to match the global . This also factors in the Local Time Scale value.
For more information also see in the Unity documentation.
Displaying the waveform can be helpful for aligning animations to audio. If not in use, it may be hidden by unchecking Draw Waveform, or by clicking the curve toggle icon while holding Shift.