Search Issue Tracker

Won't Fix

Votes

12

Found in

5.3.5f1

Issue ID

928000

Regression

Yes

Audio gets distorted when DSP buffer size is changed to "Best Latency" in Play Mode

Audio

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Secondary functionality broken

To reproduce:
1. Open attached Unity project "LowLatencyAudioBug.zip"
2. Open "AudioBug" scene
(For better performance, I suggest disabling "Time" "Spawner" and "SpawnRate" GameObjects)
3. Go into Play Mode
4. Edit --> ProjectSettings --> Audio
5. Press Space to start playback
6. When the music is playing, change DSP Buffer Size from "default" to "Best latency"

Note: bug does not always reproduce, give it a couple of tries.

Result: Audio gets distorted and glitchy

Regression first introduced in: 5.3.5p6
Reproduced on: 5.3.5p6, 5.5.4p1, 5.6.2p2, 2017.1.0f3, 2017.2.0b2
Not reproduced on: 5.3.5p5

Comments (14)

  1. Cba834be3b84bfc8f492ce90da32964a?d=mm

    Amesh

    Mar 01, 2018 20:21

    Would like this issue re-opened. This is still a problem in 2017.2.1p2 on Windows.

  2. 804723fc78365abf67a7561c537ef6a7?d=mm

    Kitkwato

    Jan 03, 2018 06:51

    Could we have this issue reopened please? Problem not fixed!

  3. 4c3e1cd0181253fce8c4cfcaa6bd2e24?d=mm

    briveramelo

    Dec 10, 2017 23:10

    Working in 2017.1 and still encountering this bug.

    From the Unity editor if I hit play, sometimes this will take place instantly as we play our menu music. Other times when I hit play, all will be normal. Interestingly though, this bug does seem to happen consistently after the first time, making me think it's memory related. From the other comments this seems to be the case. It does not seem to get triggered at anytime during gameplay; it only seems to trigger at start, but it is persistent thereafter. This will happen both in editor and in builds.

    It's an embarrassing show stopper for sure. If I could vote right now (but I can't since this is ..."Resolved"), I would put all 10 votes on this one subject.

    Thanks for all your help-- I know the dev team has to prioritize a mountain of issues, and this is only of the ghostlier ones, but it's still haunting projects in 2017.1.

  4. 2a10295da733847b41fc333d5d5ebd0f?d=mm

    jeffweber

    Nov 13, 2017 13:22

    For the record, I'm seeing this exact issue, as described here and in the forum post listed above. For me it's occuring in Unity 2017.3 b8

    Been fighting this issue for many days.

    -Jeff

  5. 804723fc78365abf67a7561c537ef6a7?d=mm

    Kitkwato

    Oct 18, 2017 02:18

    Same problem here, what's the status of the fix?

  6. Ef85e74a5ac5d8903285c96c6affc0dc?d=mm

    metaphysician

    Sep 23, 2017 06:08

    i have also experienced this exact same issue using a custom OnAudioFilterRead setup with a generative synth plugin in Unity. i had previously had good results with Best Latency as well, on an older game using Unity 5.3. recently switched to 2017 for this new generative audio project and the audio performance was terrible under Best Latency - unusable. i did assume that the graphics performance and particle effects might be causing the glitching, however. i switched to Best Performance and the results are smoother but timing is a bit rougher. reading this it seems like we have a one step forward, two steps back situation and as always, audio gets the short end of the stick.

  7. 611af7fbe3ced88bea9020fdd38b065e?d=mm

    Matti-Jokipii

    Aug 30, 2017 15:53

    There are severe bugs in the Unity audio implementation, see

    https://issuetracker.unity3d.com/issues/audio-dropouts-are-caused-by-garbage-collector-when-large-amount-of-memory-are-being-allocated

    Because of this flaw it will be impossible to get glitchless audio in any other than the most trivial applications that use very little CPU. And this is on best performance setting. I believe the low latency setting will work only by chance.

  8. 38ad5006967a2fe6182d52f8a7b85570?d=mm

    barcode802

    Aug 15, 2017 03:05

    This issue is a problem for my projects too! Please fix this Unity so I can update to the latest version.

  9. 4336efc6b5658e7d5c9f8e64f3e479ec?d=mm

    Itooh

    Aug 04, 2017 18:34

    Like Thelo, I encounter this issue only on Windows, but not on Mac end Linux. Setting the Buffer size on anything else than "Best Latency" results in a perceptible input latency. One way or the other, developing rhythm games becomes a lot more difficult.

  10. 26a1dcb09a8a43b80c2e6bc41df2f14b?d=mm

    moshangmusic

    Jul 22, 2017 02:40

    Here's a video demonstrating the problem - these are builds with all settings the same except for the editor version: https://youtu.be/nnrB7-kfox4

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.