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
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
- Shortcut Manager shows empty conflict filter when resolving runtime conflicts involving different contexts
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.