SB AWE32 Developer's Information Pack
PART II DOS Real/Protected Mode API
••
34
Copyright
Creative Technology Ltd., 1994-1996
Version 3.00
zippering noise could be heard. However, you can reduce the zippering noise by update the pan positions
in smaller steps.
CTPNP.CFG Sample
This chapter gives a sample of a typical CTPNP.CFG configuration file in Windows 95, which contains
information about the hardware configuration. The file is found in the Windows directory and can be
read to obtain the base I/O addresses for the EMU8000 sybsystem.
The file is introduced because the relationships between the 3 EMU8000 I/O windows and SB16 base
I/O address may not be true for the SB AWE32 PnP card. In fact, even the 3 EMU8000 I/O windows
themselves may not be related at all, i.e. not 0x400 apart. The Plug and Play Configuration Manager may
choose to assign any I/O windows to the SB AWE32 PnP card and hence breaking all the relationships
of a typical legacy ISA card. As a result, the device detection based on the 'E' paramter in the BLASTER
environment string is not reliable.
Creative's Windows 95 sound drivers (version 4.10 and above) have been modified to write their
hardware configurations to CTPNP.CFG file as shown below. The 3 EMU8000 I/O windows can be
obtained from the file and pass them to the awe32DetectEx function to verify the presence of the device.
[SB16]
Csn=1
LogDev=0
CardId=CTL0041
Serial=0000001B
Port0=240
Port1=300
Port2=0
Irq0=10
Dma0=3
Dma1=7
[PNP]
Readport=273
[AWE]
CardId=CTL0041
Serial=0000001B
Csn=1
LogDev=3
Port0=640
Port1=A40
Port2=E40
The EMU8000 subsystem configuration is contained in the [AWE] section. The Port0, Port1 and Port2
keywords give the base I/O addresses of the EMU8000 subsystem. Refer to the sample demo program
for reading the port information from ths file.