public virtual void MakeSound(DogSound sound) { //TODO: Play sound from file this.sound = sound; //use enum for picking the right sound file string soundFileName = "/home/root/apps/SoundTest.wav"; //Maybe this directory: /home/root/lms2012/prjs/Hvalp/Dog sniff.rsf var speaker = new Speaker(50); try { // speaker.PlaySoundFile(soundFileName); speaker.Beep(); } catch (Exception e) { LcdConsole.WriteLine("Failed to play " + soundFileName); LcdConsole.WriteLine("Exception" + e.Message); LcdConsole.WriteLine("Stack trace " + e.StackTrace); } }