home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_01 / 2n01068b < prev    next >
Text File  |  1990-12-02  |  737b  |  32 lines

  1. #include <stdio.h>
  2. #include "uclock.h"
  3. #include "sound.h"
  4.  
  5. main()
  6. {
  7.         int i;
  8.  
  9.         if (!playb_open(1024))
  10.         {
  11.                 puts("\aError opening play buffer");
  12.                 return -1;
  13.         }
  14.         playb_note(C3, 8);
  15.         playb_note(REST, 2);
  16.         playb_note(C3, 8);
  17.         playb_note(REST, 2);
  18.         playb_note(E3, 8);
  19.         playb_note(REST, 2);
  20.         playb_note(E3, 8);
  21.         playb_note(REST, 2);
  22.         playb_note(G3, 8);
  23.         playb_note(REST, 2);
  24.         playb_note(G3, 8);
  25.         playb_note(REST, 2);
  26.         playb_note(E3, 18);
  27.         playb_note(REST, 2);
  28.         for (i = 0; i < 500; ++i)
  29.                 printf("i = %d\n", i);
  30.         playb_close();
  31. }
  32.