Search Issue Tracker
By Design
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
- Vector3 node has no X, Y, Z outputs when adding Vector3 node in the Visual Effect Graph
- [Android] Error "Blitter is already initialized" is present when Adaptive Probe Volumes are used with OpenGLES3
- VFX Graph effect instance stops rendering when a second instance of the same effect starts 2 frames later
- Operations on the Color32 array are not reflected in WebGL Player when HDR is off
- Rigidbody moves away from the original GameObject when Center of Mass is set in every frame
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].