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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
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.