Search Unity

Game freezes (small hiccup) when I call Microphone.End()

Discussion in 'Audio & Video' started by pep_dj, Apr 14, 2016.

  1. pep_dj

    pep_dj

    Joined:
    Nov 7, 2014
    Posts:
    179
    When I call Microphone.End(null), there is a noticeable hiccup (tested in Android). I've tried running this in a background thread, but I get an error saying that method can only be called form the main thread.

    Is there a way to avoid that hiccup when calling Microphone.End()?
     
  2. matt-mccallus

    matt-mccallus

    Joined:
    May 20, 2015
    Posts:
    1
    I am also experiencing this issue using Unity 5.4.4 on WIndows 7 64bit, with the Oculus Rift microphone. I have reports from some of my testers that the freeze can be as long as 30 seconds.

    Anybody have any info on how to avoid this issue?

    Thanks!
     
  3. LGolivia

    LGolivia

    Joined:
    Nov 21, 2012
    Posts:
    4
    Likewise, I have the same issue on Windows 7 x64, and I also tried and failed using a thread to handle it. If there is no answer or fix, I'd be happy just to know it's a generally acknowledged issue that may get fixed in a future update.