Search Unity

WasClosed delegate is fired too early?

Discussion in 'Unity Everyplay' started by villeHelin, Sep 9, 2015.

  1. villeHelin

    villeHelin

    Joined:
    Mar 27, 2013
    Posts:
    40
    My situation, and problem:

    1. I play around using mic-in, read the data, analyze it, etc.
    2. I show the Everyplay GUI which will kill my microphone system by, I guess, overtaking control over the mic
    3. I re-init my mic code by closing and opening the mic in Everyplay's WasClosed callback

    This doesn't work. But if I start a timer in WasClosed callback, and wait for one second, and then re-init my mic code, it will succeed. Thus: is WasClosed called from Everyplay too early?