         Audiometer sample program source files
                      05/02/97 -med


The source files have been compressed into packed archive
form in order to save space on the disk. You can unpack 
the source files with the UNPACK program that is provided.

Copy the files UNPACK.EXE and SAMPLES.PAK to your hard disk, 
or to a freshly formated floppy disk. Then run the unpack 
program to unpack the source code by entering the following 
at the DOS prompt:

   UNPACK ASAMPLES.PAK



The following program source files are provided with the 
Audiometer RS232 disk to show example programming for the 
Fonix audiometer.

------------------------------------------------------
ATEST.PAS   - MSDOS version of the ATEST program
PATEST.PAS  - Protected MSDOS version of ATEST program
WATEST.PAS  - Win3.1 version of ATEST program (16 bit)
ATEST32.DPR - Win95/NT version of ATEST program (32 bit)
ATEST32.RES - Resource file for 32 bit ATEST program
AUDTEST.PAS - Source code for the ATEST program

------------------------------------------------------
APAC.PAS     - MSDOS version of the APAC program
PAPAC.PAS    - Protected MSDOS version of APAC program
WAPAC.PAS    - Win3.1 version of APAC program (16 bit)
APAC32.DPR   - Win95/NT version of APAC program (32 bit)
APAC32.RES   - Resource file for 32 bit APAC program
APACUNIT.PAS - Source code for the APAC program         
AUDUNIT.PAS  - Display control unit for APAC
AUDIO.PAS    - Keyboard/mouse control unit for APAC
AUDMISC.PAS  - Misc other routines used by APAC

------------------------------------------------------
AUDKEY.PAS   - MSDOS version of the AUDKEY program        
PAUDKEY.PAS  - Protected MSDOS version of AUDKEY program  
WAUDKEY.PAS  - Win3.1 version of AUDKEY program (16 bit)  
AUDKEY32.DPR - Win95/NT version of AUDKEY program (32 bit)
AUDKEY32.RES - Resource file for 32 bit AUDKEY program    
AKEYUNIT.PAS - Source code for the AUDKEY program         
AUDPARMS.PAS - Misc other routines used by AUDKEY
HETS.PAS     - Misc definitions used by AUDKEY

------------------------------------------------------
AGRAM.PAS    - MSDOS version of the AGRAM program        
PAGRAM.PAS   - Protected MSDOS version of AGRAM program  
WAGRAM.PAS   - Win3.1 version of AGRAM program (16 bit)  
AGRAM32.DPR  - Win95/NT version of AGRAM program (32 bit)
AGRAM32.RES  - Resource file for 32 bit AGRAM program    
AUDGRAM.PAS  - Source code for the AGRAM program         
AGSUB.PAS    - Misc routines used by AGRAM program       

------------------------------------------------------
CALPRN.PAS   - MSDOS version of the CALPRN program        
PCALPRN.PAS  - Protected MSDOS version of CALPRN program  
WCALPRN.PAS  - Win3.1 version of CALPRN program (16 bit)  
CALPRN32.DPR - Win95/NT version of CALPRN program (32 bit)
CALPRN32.RES - Resource file for 32 bit CALPRN program    
CPUNIT.PAS   - Source code for the CALPRN program         
               
------------------------------------------------------
TERM.PAS     - MSDOS version of the TERM program        
PTERM.PAS    - Protected MSDOS version of TERM program  
WTERM.PAS    - Win3.1 version of TERM program (16 bit)  
TERM32.PAS   - Win95/NT version of TERM program (32 bit)
TERM32.PAS   - Resource file for 32 bit TERM program    
TERMUNIT.PAS - Source code for the TERM program         

Common routines used by the above programs
------------------------------------------------------
AUDFIPP.PAS  - Audiometer communications routines
AUDSUBS.PAS  - Audiometer control subroutines
VIDSUBS.PAS  - Computer screen control subroutines
TERMSUB.PAS  - ASCII terminal subroutines
TICKER.PAS   - Dos/Windows timer routines
MOUSE.PAS    - Mouse control routines
MOUSESTK.PAS - mouse stack
MOUSEISR.PAS - mouse isr
MOUSECUR.PAS - mouse cursor
MOUSESUB.PAS - mouse sub functions
DOSCRT.PAS   - Windows CRT emulator (for Windows use only)
AUD.RES      - Resourse file for Windows (Frye logo icon) 
FRYE.RES     - Resourse file for Windows (Frye logo icon) 
FRYEREGS.INC - Fryers communication register definitions
PLATFORM.INC - Automatic compiler defines for target Platform 

------------------------------------------------------
PASCAL.TXT   - Documentation about the Pascal/Delphi programs
HOOKINT.TXT  - How to hook an interrupt in MSDOS

------------------------------------------------------
Note that these programs require Borland's Turbo Pascal
or Delphi 2.0 to compile. You may use the Windows version, 
or the MSDOS version. The compile directives in the files 
automatically select the appropriate code for the 
target system. 

The Windows version of the programs are very simplistic 
in order to maintain the compatibility to MSDOS. 
The DOSCRT unit does most of the work to provide the 
emulation of the MSDOS enviornment in Windows 31. You can 
either continue to use the DOSCRT unit, or you can start 
with your own Windows enviornment. The audiometer 
communication routines do not rely on DOSCRT to do their 
work. Do note though that they require a special compiler 
switch to work in Windows mode. This slows things down a bit, 
but it is generally not a limiting speed factor.

For Windows 95/NT, you should use the Delphi 2.0 compiler. 
The programs are built as a console application (text based).
So that the code can be easily shared with the MSDOS version. 
Very little needs to be changed to work as a 32 bit console.

The MSDOS and Windows 3.1 programs require that the FRYERS 
driver be loaded to be able to communicate with the 
audiometer. The FRYERS driver must be loaded before the 
program is run. FRYERS.COM is a TSR program that will stay 
in the system until you turn the power off or reboot your 
computer. For Windows 3.1 operation, FRYERS.COM must be 
loaded before Windows 3.1 is started. Additionally, for 
Windows 3.1 operation or any other protected mode 
enviornment, you must use Version 4.00 or later of the 
FRYERS.COM program which allows use in protected mode 
operation.

For Windows 95/NT (32 bit operation), the FRYERS32.DLL 
file must be located in the Windows directory. 
The Windows 95/NT version do not use the FRYERS.COM tsr,
they use the FRYERS32.DLL driver instead.


<eof>
