A sample serial wave driver INF file is in the MDK, SMPSERWV.INF. You can include this file on your modem installation diskette with few, if any, changes. Each of the sections that contain items you may want to change are discussed in the following.
[SAMPLE2.AddReg]
HKR,Drivers\wave\serwvdrv.drv,Description,,%Rockwell.DeviceDesc%
;; serwvdrv.drv is driver
HKR,Config,XformModule, , "umdmxfrm.dll" ;; necessary
HKR,Config,XformID, 1, 01, 00, 00, 00 ;; format
Use the value of the XformID key to specify the format your serial wave device uses. The value used in SMPSERWV.INF, 0x00000001, specifies the 4-bit Rockwell ADPCM 7200 Hz format. Valid values for the XformID key are listed in the following table:
XformID Value | Meaning |
---|---|
0x00000001 | 4-bit Rockwell ADPCM 7200 Hz format |
0x00000002 | 4-bit IMA ADPCM 4800 Hz format |
0x00000003 | 4-bit IMA ADPCM 7200 Hz format |
0x00000004 | 4-bit IMA ADPCM 8000 Hz format |
[SAMPLE1.AddReg]
HKR,Drivers\wave\serwvdrv.drv,Description,,%Cirrus.DeviceDesc%
HKR,Config,XformModule, , "umdmxfrm.dll"
HKR,Config,XformID, 1, 02, 00, 00, 00
HKR,Config,WaveDevices, 1, 01, 00 ;; normally, have 2 wave devices, line and
;; handset. If handset is not supported
;; only have 1 wave device, so serwvdrv
;; needs to know this so it only reports
;; one device. If this entry is omitted
;; default is 2
Use the value of the WaveDevices key to indicate whether or not your voice modem has the ability to playback and record to a handset device. The value used in SMPSERWV.INF, 0x00000001, indicates that the voice modem does not have this ability, or does not have a handset device. Valid values for the WaveDevices key are listed in the following table:
WaveDevices Value | Meaning |
---|---|
0x00000001 | Voice modem plays back and records to line only. |
0x00000002 | Voice modem plays back and records to line and handset device. |
There other items in the SMPSERWV.INF file that are of interest only because they indicate SMPSERWV.INF is a wave device INF file and not a modem device INF file.
[Version]
Signature="$Windows95$"
Class=MEDIA ;; needed - this is a wave driver, so gets installed in media
provider=%MSFT%
[ClassInstall]
Addreg=Class.AddReg ;; standard media stuff
[Class.AddReg] ;; standard media stuff
HKR,,,,%MediaClassName%
HKR,,Icon,,"-1"
HKR,,Installer,,mmci.dll
[MSSERWAVE.AddReg] ;; this stuff should never change
HKR,,DevLoader,,mmdevldr.vxd
HKR,Drivers,MIGRATED,,0
HKR,Drivers\wave,,,
HKR,,Driver,,serwave.vxd
HKR,Drivers\wave\serwvdrv.drv,Driver,,serwvdrv.drv
HKR,Drivers,SubClasses,,"wave"