Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

integer overflow/integer

Discussion in 'Web' started by roka, Apr 26, 2017.

  1. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Basically in wasm_pitch_bug.unitypackage i tried extracting some code from our car racing game(affected with the wasm bug) where car 'engine' sounds is controlled by audiosource pitch & being used in FixedUpdate.
     
    Last edited: Aug 29, 2017
  2. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
  3. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
  4. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    thanks, we are looking at it.
     
    Gaurav-Gulati likes this.
  5. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    This is now fixed and will work fine in a future patch. For the time being avoid setting AudioSource.pitch to zero.
    Thanks!
     
    Gaurav-Gulati likes this.
  6. Gaurav-Gulati

    Gaurav-Gulati

    Joined:
    Sep 22, 2014
    Posts:
    52
    Great, Thanks
     
  7. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,778
    I don't know if this is related but I'm seeing an Android native crash bug related to the same function

    DirectorFrameTime::CalculateDSPDeltaTime()

    Screen Shot 2018-04-26 at 1.30.05 PM.png