Search Issue Tracker
By Design
Votes
1
Found in
2017.4.0f1
2018.4.0f1
2019.2
2019.2.8f1
2019.3
2020.1
Issue ID
1192132
Regression
No
[Timeline] Changing PlayableDirector.time causes gaps in audio
Reproduction steps:
1. Open project in "AudioLoopTest.zip"
2. Select "Sound" in Hierarchy window
3. Window -> Sequencing -> Timeline
4. Notice how audio track in the Timeline has no gaps
5. Enter Play Mode
Expected results: when "loop.cs" script changes PlayableDirector.time there will be no gaps in the audio played
Actual results: each time PlayableDirector.time is changed there is a gap and a crack noise in the audio played
Reproducible with: 2017.4.33f1, 2018.4.12f1, 2019.2.10f1, 2019.3.0b8, 2020.1.0a9
Notes:
1. Audio file format does not seem to influence the results (checked with .mp3 and .wav)
2. In some Unity versions, you might need to reattach TimelineAsset(SoundTimeline) to "Sound" Playable Director as it is removed.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [URP] Invalid update of shader stripping settings
- [HDRP] Errors on Shader stripper that do not stripp shaders.
- Usage of Adaptive Probe Volumes throws a lot of IndexOutOfRangeException and Assertion Failed errors
- Prefab overrides don't recover missing managed references
- Trail Renderer visual doesn't match the positions of vertices when they have been offset
Resolution Note (2020.1.X):
This is expected behaviour. The audio system needs to know ahead of time about loop sections, and changing playableDirector.time will cause an immediate re-seek and delay/pop in the sound.