Example #1
0
    void OnDestroy()
    {
        playEnabled = false;
        initialized = false;

        singleton = null;
    }
 public static int SendMessage(int Command, int Data1, int Data2)
 {
     if (CSharpSynth.singleton)
     {
         CSharpSynth.ShortMessage((byte)Command, (byte)Data1, (byte)Data2);
         return(1);
     }
     else
     {
         return(0);
     }
 }
 public static int Start(int sampleRate, int polyphony)
 {
     return(CSharpSynth.Init(sampleRate, polyphony) == true ? 1 : 0);
 }