home *** CD-ROM | disk | FTP | other *** search
- -----------------------------------------------------------------------------
-
- PRC - Diagnostic program for Play/R and Play/D
-
- -----------------------------------------------------------------------------
- Copyright 1992, Kevin Weiner, All rights reserved
-
- Proprietary material - not for distribution
- -----------------------------------------------------------------------------
-
- PRC is intended to exercise various MIDI engine API functions by sending
- commands to the TSR from the command line. It may also be used to
- control some useful player functions from languages which do not provide
- an interrupt facility, but which do provide a way to execute DOS commands.
-
- Run playd or playr first, then type prc and an API function number.
- Respond to any prompts (for functions 4 and 8, the file name may be
- added to the command line). Where a device number is requested, 1 is a
- appropriate response. To test MIDI output, either load a file with
- function 4, or use function 21 to play a single note. To test input,
- send some input from a keyboard or other device and then use function 24
- to read it. To test large dumps, you must have used -Sn on the playd
- line to set it's input buffer to nK bytes. Otherwise, polled input and
- a small buffer are used.
-
- API Function Use
-
- 0 Pause play
- 1 Continue play
- 2 n/a
- 3 Rewind
- 4 Load file & start
- 5 Get song status
- 6 Get file load status
- 7 n/a
- 8 Load file & pause
- 9 Silence playing notes
- 10 n/a
- 11 Volume adjust
- 12 Reset MIDI device
- 13 Set timer mode
- 14 Get channel map
- 15 Set channel map
- 16-19 n/a
- 20 Get device name
- 21 Play a note
- 22 n/a
- 23 Check for waiting input
- 24 Get waiting input
- 25 Get millisecond time
- 99 Remove Play/D from memory
-
-