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
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
- PolySpatial “Trying to set shader on a Material Variant.” error is printed in the console when entering Play Mode
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
- Addressables content build fails but the Player build is successful when building a development build
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].