Search Issue Tracker
By Design
By Design in 2022.2.X
Votes
0
Found in
2021.3.3f1
2022.1.3f1
2022.2.0a13
Issue ID
UUM-365
Regression
No
Audio playing/stopping delay when the stream parameter in the AudioClip.Create is set to true
How to reproduce:
1. Open the attached '1312535.zip' project
2. Open 'SampleScene'
3. Enter the Play mode
4. Press the 'Stream start' button
5. Press the 'Stream stop' button
Expected result: There is no delay when playing/stopping the audio
Actual result: There is a noticeable delay when playing/stopping the audio
Reproducible with: 2018.4.32f1, 2019.4.21f1, 2020.2.6f1, 2021.1.0b8, 2021.2.0a6
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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
Resolution Note:
Using streamed audio clips for doing real-time DSP that react to game events is not the right way to go about this. The streaming system has been designed to stream compressed files from memory and uses a large buffer (16384 samples) for storing streams, hence the delay. The proper way to do what the user wants to do is to use OnAudioFilterRead [https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnAudioFilterRead.html].
Resolution Note (2022.2.X):
Using streamed audio clips for doing real-time DSP that react to game events is not the right way to go about this. The streaming system has been designed to stream compressed files from memory and uses a large buffer (16384 samples) for storing streams, hence the delay. The proper way to do what the user wants to do is to use OnAudioFilterRead [https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnAudioFilterRead.html].