Exemplo n.º 1
0
 public void stop()
 {
     if (null != midi)
     {
         midi.Stop();
         midi.Close();
         midi = null;
     }
 }
Exemplo n.º 2
0
        public void start()
        {
            IConfiguration configuration = ServiceManager.get<IConfiguration>(netplug.Services.Configuration);

            string outputDevice = configuration.getProperty("arg0");
            int outputDeviceId = (outputDevice.Length > 0) ? int.Parse(outputDevice) : -1;

            if (null == midi)
            {
                midi = new Midi(this);
                midi.Open(-1, outputDeviceId);
                midi.Start();
            }
        }