Sound Functions

#include "graphapp.h"

void do_it(button b)
{
  beep();
}

void main(void)
{
  window w;
  button b;

  w = newwindow("Listen...", rect(20,20,400,300),
                StandardWindow);
  b = newbutton("Press", rect(10,10,80,30), do_it);
  show(w);
  mainloop();
}