예제 #1
0
파일: Main.cs 프로젝트: aquariumy/audioio
    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;
    }
예제 #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);
 }