Exemple #1
0
        public static void Main(string[] args)
        {
/*
 *                      BinaryReader br = new BinaryReader(File.OpenRead("Conquest_of_Paradise.mid"));
 *                      Midi_Header_C m = new Program.Midi_Header_C();
 *                      Midi_Track_C t = new Program.Midi_Track_C();
 *                      m.Midi_Header_gs = br.ReadBytes(4);
 *                      m.Header_Length_gs = br.ReadBytes(4);
 *                      m.Midi_Format_gs = br.ReadBytes(2);
 *                      m.Number_Track_Chunks_gs = br.ReadBytes(2);
 *                      m.Timing_Unit_gs = br.ReadBytes(2);
 *
 *                      t.Track_Header_gs = br.ReadBytes(4);
 *                      t.Track_Length_gs = br.ReadBytes(4);
 *                      t.Midi_Event_gs = br.ReadBytes(4);
 */
            WindowsMediaPlayer WMP = new WindowsMediaPlayerClass();

            WMP.openPlayer("Conquest_of_Paradise.mid");

            /*
             * Console.WriteLine("Header: " + Bytes2String(m.Midi_Header_gs));
             * Console.WriteLine("Header length: " + ByteArray2Int(m.Header_Length_gs));
             * Console.WriteLine("Midi format: " + ByteArray2Int(m.Midi_Format_gs));
             * Console.WriteLine("n Chunks: " + ByteArray2Int(m.Number_Track_Chunks_gs));
             * Console.WriteLine("Timing unit: " + Midi_Tick_Format(m.Timing_Unit_gs));
             * Console.WriteLine();
             * Console.WriteLine("Track Header: " + Bytes2String(t.Track_Header_gs));
             * Console.WriteLine("Track length: " + ByteArray2Int(t.Track_Length_gs));
             * Console.WriteLine("Midi Event: " + Detect_Midi_Event(t.Midi_Event_gs));
             */
            //Console.WriteLine("n Tracks: " + C.ToString());



            Console.Write("Press any key to continue . . . ");
            Console.ReadKey(true);
        }
Exemple #2
0
        private void startPlayer(Uri url)
        {
            // _mediaPlayer.openPlayer(ParseStreamUri(url).AbsoluteUri);

            _mediaPlayer.openPlayer(ParseStreamUri(url).AbsoluteUri);
        }