Search Issue Tracker

Active

Votes

3

Found in

5.4.2f2

Issue ID

849463

Regression

No

Microphone playback is frequently corrupted

Audio

-

Prerequisites: You need a microphone

Steps to reproduce:
1. Open "MicTest" project
2. Open "test" scene
3. Play in editor
4. Say something to microphone
5. Repeat steps 3-4 until you hear corrupted sound in the playback

Results: Microphone sometimes playback corrupted sound

Note: This issue reproduces ~ 4/10 times

Reproduced with: 5.6.0a3, 5.5.0f1, 5.4.2f2

Comments (2)

  1. 54464336393742b2be8cba6ad725076e?d=mm

    BOGUnity01

    Mar 07, 2018 01:57

    This seems to be happening, at least with iOS. Does anyone have a work-around, or a fix to this issue? Microphone seems to stutter second time its used.

  2. 7af918c946e4728baaf1a6a0d563f489?d=mm

    madsnowman

    Mar 27, 2017 08:34

    I am seeing this as well. The current workaround is disarming and re-arming the microphone, but corruption occurs around 25% of the time. It doesn't appear to be related to the length of the microphone being armed. Sometimes it corrupts immediately, and sometimes it runs well for over an hour before happening.

    For me, I can hear that the corruption is related to an audio sample being played back as an echo of the user's microphone input, and is related to the length of the buffer. So, with the following code that has a 1-second buffer, if you listen closely you can hear the previous 1 second of audio played back as a corrupted echo.

    Microphone.Start(selectedMic, true, 1, maxFrequency);
    while (!(Microphone.GetPosition(selectedMic) > 0)) {}

    The only way to remove this corrupted echo is to disarm and re-arm the microphone.

    This occurs with every "DSP Buffer Size" configured in the Audio settings (Default, Best latency, Good latency, Best performance). It seems that "Best performance" has slightly less chance of corrupting, but not by much.

    Reproduced with 5.5.2f1, 5.5.0f1

Add comment

Log in to post comment

All about bugs

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