Exemple #1
0
    static public IEnumerator OnStart()
    {
        AppliDebug.D(STR_CLASS, "OnStart()");
        yield return(new WaitForSeconds(1.0f));

        // AppliAudioIO
        AppliAudioIO.Init();
        // UI
        AppliPlugin.SetInvisibleLoadingView();
        // Debug
        AppliDebug.D(STR_CLASS, "OnStart() version-sdk-int : " + AppliPlugin.GetVersionSdkInt());
        AppliDebug.D(STR_CLASS, "OnStart() manufacturer : " + AppliPlugin.GetManufacturer());
        AppliDebug.D(STR_CLASS, "OnStart() model : " + AppliPlugin.GetModel());
        state = State.Main;
    }
Exemple #2
0
 static private AndroidJavaObject GetAndroidJavaObject()
 {
     if (androidJavaObject == null)
     {
         if (26 <= AppliPlugin.GetVersionSdkInt())
         {
             AppliDebug.D(STR_CLASS, "GetAndroidJavaObject() jp.co.aquariumy.audioio.aaudio");
             androidJavaObject = new AndroidJavaObject("jp.co.aquariumy.audioio.aaudio.AudioIOPlugin");
         }
         else if (21 <= AppliPlugin.GetVersionSdkInt() && 0 <= AppliPlugin.GetManufacturer().IndexOf("SAMSUNG"))
         {
             AppliDebug.D(STR_CLASS, "GetAndroidJavaObject() jp.co.aquariumy.audioio.samsung");
             androidJavaObject = new AndroidJavaObject("jp.co.aquariumy.audioio.samsung.AudioIOPlugin");
         }
         else
         {
             AppliDebug.D(STR_CLASS, "GetAndroidJavaObject() jp.co.aquariumy.audioio");
             androidJavaObject = new AndroidJavaObject("jp.co.aquariumy.audioio.AudioIOPlugin");
         }
     }
     return(androidJavaObject);
 }