home *** CD-ROM | disk | FTP | other *** search
- {∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞
- ┌───────────────────────────────────────────────────────────────────────────┐
- │EXAMPLE 1 & TGP is Copyright (c)1994,95 by Gunther Voet - aka Freaker / TuC│
- ├───────────────────────────────────────────────────────────────────────────┤
- │ Starfield:Sinecure/Optimization:Freaker/Music:Jester (flowerpower) │
- └───────────────────────────────────────────────────────────────────────────┘
- ∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞TuC∞}
-
-
- PROGRAM EXAMPLE_1;
-
- {This example shows you how to play a file straigth with autodetection and }
- {the standard TuC interface. Don be ashamed to use this, because, we added }
- {it for you! This interface autodetects, show the irq's and play the }
- {modfile without hassling around with low level procedures. Just load and }
- {play. Default frequency for SB is 22.5Khz, GUS is 44Khz }
-
- {$M 4096,0,9128} {This directive is NECESSARY for the mod-load}
- {2000 bytes heap & stacksize is REQUIRED for the player}
- {4096 bytes heap / 9128 stack is RECOMMENDED}
-
- {MUSIC ROUTINES}
- { V }
- USES TGP,TUC_DEMO;
- { ^ }
- {EXAMPLE GFX}
-
- begin
- tgp.debugmode:=true; {SHOW DEBUGGINGINFO WHEN NECCESARY}
-
- tgp.quickload('EXAMPLE1.MOD',false); {Quickload file tucgplay.mod}
-
- initstars; {Initialize star routines}
-
- tgp.startmus; {Music MAESTRO!}
-
- repeat {Start of Repeat}
-
- {You can eventually call "TGP.POLLMUSIC" or "TGP.POLLBUFFER"
- if you experience problems using TGP with interrupt dependent tasks.}
-
- plotstars; {plotstars by sinecure !}
-
- until port[$60]=1; {repeat until port $60 = 1 (faster }
- {than keypressed}
-
- tgp.fastuninit; {ALWAYS uninitialize !!!!!!!}
-
- uninit_demounit; {mode 3h (textmode) and endtext !}
- end.
-