Search Unity

Any way to recognize the current audio routing on mobile devices?

Discussion in 'Audio & Video' started by Matti-Jokipii, Sep 6, 2016.

  1. Matti-Jokipii

    Matti-Jokipii

    Joined:
    Apr 24, 2015
    Posts:
    16
    I need to adjust the mixer configuration according to the current audio routing configuration, i.e. internal device speakers versus some external output device such as headphones or bluetooth speakers. ATM i need this only on iOS and Android.

    What would be a the best way to achieve this in Unity?

    The AudioSettings class does not seem to acknowledge anything related to device audio routing. As far as i know, the only solution is to detect the routing change in native code and send a message to unity.
     
    DmitriiMiroshnikEpam likes this.