#include "eyebot.h"

int main()
{ int k, done;

  LCDPrintf("Select your sound\n");
  LCDMenu("BEEP", "WAV", "MP3", "END");
  do
  { switch (k = KEYGet())
    { case KEY1: AUBeep(); break;
      case KEY2: AUPlay("welcome.wav"); break;
      case KEY3: AUPlay("beep.mp3"); break;
    }

    do
    { OSWait(500);
      if ((done = AUDone())) LCDSetPrintf(3,0, "done   \n");
        else                 LCDSetPrintf(3,0, "playing\n");
    } while (!done);
  } while (k != KEY4);
}

