TestSound.Mod 344 B

12345678910111213141516
  1. MODULE TestSound;
  2. IMPORT G := Graph, Sound, Out;
  3. VAR c: G.Color;
  4. BEGIN
  5. G.Settings(320, 200, {G.window, G.center});
  6. G.Init;
  7. Sound.Init;
  8. IF ~Sound.Done THEN Out.String('SOUND INIT FAILED.'); Out.Ln END;
  9. G.MakeCol(c, 240, 10, 0);
  10. G.ClearToColor(c);
  11. G.Flip;
  12. Sound.Sound(412);
  13. G.Delay(1000);
  14. Sound.Close;
  15. G.Close
  16. END TestSound.