Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question No vibration during mic recording

Discussion in 'Audio & Video' started by ynaoto, Dec 27, 2021.

  1. ynaoto

    ynaoto

    Joined:
    Mar 26, 2016
    Posts:
    21
    Hello,
    I'm facing strange phenomena in Unity 2021.2.4 targeting iOS.
    Handheld.Vibrate() works well, but once called
    Microphone.Start() vibration stop working.
    Calling Microphone.End() resumes the vibration again.
    Attached is a project to reproduce.
    Any ideas?
     

    Attached Files:

  2. Starbox

    Starbox

    Joined:
    Sep 17, 2014
    Posts:
    438
    It might be due to the device's set up and some attenuation. Logically you would not want your vibrations to be picked up by the microphone.
    https://developer.apple.com/documen...405202-audioservicesplayalertsound#discussion
    See categories.
     
  3. ynaoto

    ynaoto

    Joined:
    Mar 26, 2016
    Posts:
    21
    Thanks for your reply. Sounds like that is a designed behavior of iOS. I will suspend the mic input during time for vibration.