// 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); } }