Example #1
0
        // Reads in a .wav file

        public void loadWave(string filename)
        {
            // Sound File
            FileStream file = new FileStream(filename, FileMode.Open, FileAccess.Read);

            if (file == null)
            {
                System.Console.Write("Failed to Open File!");
            }
            else
            {
                waveIn = new wavefile(file);
            }
        }
 // Reads in a .wav file
 public void loadWave(string filename)
 {
     // Sound File
     FileStream file = new FileStream(filename, FileMode.Open, FileAccess.Read);
     if (file == null)
     {
         System.Console.Write("Failed to Open File!");
     }
     else
     {
         waveIn = new wavefile(file);
     }
 }