;------------------------------------------------------------------------------
; Copyright (c) 2009 Creative Technology Ltd. All rights reserved.
;------------------------------------------------------------------------------

[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGuid={4d36e96c-e325-11ce-bfc1-08002be10318}
provider=%CREAF%
CatalogFile.NTX86=ctOAx32.cat
CatalogFile.NTAMD64=ctOAx64.cat
DriverVer=08/29/2012,5.10.0.4119

[Manufacturer]
%MfgName%=CREATIVE, NTX86.5, NTAMD64.5, NTX86.6, NTAMD64.6

[ControlFlags]
ExcludeFromSelect = *

[CREATIVE]

[CREATIVE.NTX86.6]

[CREATIVE.NTAMD64.6]

[CREATIVE.NTX86.5]
%SB1140.Desc% = SB1140.NTX86, USB\VID_041E&PID_30D3&MI_00
%SB1260.Desc% = SB1260.NTX86, USB\VID_041E&PID_30D8&MI_00

[CREATIVE.NTAMD64.5]
%SB1140.Desc% = SB1140.NTAMD64, USB\VID_041E&PID_30D3&MI_00
%SB1260.Desc% = SB1260.NTAMD64, USB\VID_041E&PID_30D8&MI_00

[SB1140.NTX86.CoInstallers]
CopyFiles=CoInst.CopyList
AddReg=CoInst.AddReg

[SB1140.NTAMD64.CoInstallers]
CopyFiles=CoInst.CopyList
AddReg=CoInst.AddReg

[SB1260.NTX86.CoInstallers]
CopyFiles=CoInst.CopyList
AddReg=CoInst.AddReg

[SB1260.NTAMD64.CoInstallers]
CopyFiles=CoInst.CopyList
AddReg=CoInst.AddReg

[SB1140.NTX86]
Include=wdma_usb.inf,ks.inf,wdmaudio.inf
Needs=USBAudio.NT,KS.Registration,WDMAUDIO.Registration
CopyFiles=CoInst.CopyList,Filter.CopyList,DLL.CopyList.ntx86
AddReg=CoInst.AddReg,SB1140.AddReg.ntx86,Filter.AddReg

[SB1140.NTAMD64]
Include=wdma_usb.inf,ks.inf,wdmaudio.inf
Needs=USBAudio.NT,KS.Registration,WDMAUDIO.Registration
CopyFiles=CoInst.CopyList,Filter.CopyList,DLL.CopyList.amd64
AddReg=CoInst.AddReg,SB1140.AddReg.amd64,Filter.AddReg

[SB1260.NTX86]
Include=wdma_usb.inf,ks.inf,wdmaudio.inf
Needs=USBAudio.NT,KS.Registration,WDMAUDIO.Registration
CopyFiles=CoInst.CopyList,Filter.CopyList,DLL.CopyList.ntx86
AddReg=CoInst.AddReg,SB1260.AddReg.ntx86,Filter.AddReg

[SB1260.NTAMD64]
Include=wdma_usb.inf,ks.inf,wdmaudio.inf
Needs=USBAudio.NT,KS.Registration,WDMAUDIO.Registration
CopyFiles=CoInst.CopyList,Filter.CopyList,DLL.CopyList.amd64
AddReg=CoInst.AddReg,SB1260.AddReg.amd64,Filter.AddReg

[SB1140.NTX86.HW]
AddReg=FilterHW.AddReg,SB1140FriendlyName.AddReg

[SB1140.NTAMD64.HW]
AddReg=FilterHW.AddReg,SB1140FriendlyName.AddReg

[SB1260.NTX86.HW]
AddReg=FilterHW.AddReg,SB1260FriendlyName.AddReg

[SB1260.NTAMD64.HW]
AddReg=FilterHW.AddReg,SB1260FriendlyName.AddReg

[SB1140.NTX86.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_MS%,SB1140.Global
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_MS%,SB1140.Global
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_MS%,SB1140.Global

[SB1140.NTAMD64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_MS%,SB1140.Global
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_MS%,SB1140.Global
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_MS%,SB1140.Global

[SB1260.NTX86.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_MS%,SB1260.Global
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_MS%,SB1260.Global
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_MS%,SB1260.Global

[SB1260.NTAMD64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_MS%,SB1260.Global
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_MS%,SB1260.Global
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_MS%,SB1260.Global

[SB1140.Global]
AddReg=SB1140.Global.AddReg
[SB1140.Global.AddReg]
HKR,,FriendlyName,,%SB1140.Desc%
HKR,,CLSID,,%Proxy.CLSID%

[SB1260.Global]
AddReg=SB1260.Global.AddReg
[SB1260.Global.AddReg]
HKR,,FriendlyName,,%SB1260.Desc%
HKR,,CLSID,,%Proxy.CLSID%

[SB1140.NTX86.Services]
AddService = OAfilt, 0x00000000, Filter_Service_Install
Include=wdma_usb.inf
Needs=USBAudio.NT.Services

[SB1140.NTAMD64.Services]
AddService = OAfilt, 0x00000000, Filter_Service_Install
Include=wdma_usb.inf
Needs=USBAudio.NT.Services

[SB1260.NTX86.Services]
AddService = OAfilt, 0x00000000, Filter_Service_Install
Include=wdma_usb.inf
Needs=USBAudio.NT.Services

[SB1260.NTAMD64.Services]
AddService = OAfilt, 0x00000000, Filter_Service_Install
Include=wdma_usb.inf
Needs=USBAudio.NT.Services

[Filter_Service_Install]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\system32\drivers\OAfilt.sys

[SB1140.AddReg.ntx86]
HKR,,SetupPreferredAudioDevices,3,01,00,00,00
HKCU,"Software\Microsoft\Multimedia\Sound Mapper","SetupPreferredAudioDevicesCount",0x4,00,00,00,00
;; Copy friendly names to a location the driver knows
HKLM,%SB1140.ntx86%,%KSNAME_MS%,,%SB1140.Desc%

[SB1140.AddReg.amd64]
HKR,,SetupPreferredAudioDevices,3,01,00,00,00
HKCU,"Software\Microsoft\Multimedia\Sound Mapper","SetupPreferredAudioDevicesCount",0x4,00,00,00,00
;; Copy friendly names to a location the driver knows
HKLM,%SB1140.amd64%,%KSNAME_MS%,,%SB1140.Desc%

[SB1260.AddReg.ntx86]
HKR,,SetupPreferredAudioDevices,3,01,00,00,00
HKCU,"Software\Microsoft\Multimedia\Sound Mapper","SetupPreferredAudioDevicesCount",0x4,00,00,00,00
;; Copy friendly names to a location the driver knows
HKLM,%SB1260.ntx86%,%KSNAME_MS%,,%SB1260.Desc%

[SB1260.AddReg.amd64]
HKR,,SetupPreferredAudioDevices,3,01,00,00,00
HKCU,"Software\Microsoft\Multimedia\Sound Mapper","SetupPreferredAudioDevicesCount",0x4,00,00,00,00
;; Copy friendly names to a location the driver knows
HKLM,%SB1260.amd64%,%KSNAME_MS%,,%SB1260.Desc%

[Filter.AddReg]
HKR,Sensaura\Configuration,RenderFactory000,0,%KSNAME_MS%
HKR,Sensaura\Configuration,IgnoreDSSpeakerConfiguration, 1, 00, 00, 00, 00
HKR,Sensaura\Configuration,ForwardSpeakerConfiguration, 1, 00, 00, 00, 00
HKR,Sensaura\Configuration,LoopNum, 1, 01, 00, 00, 00
HKR,Sensaura\Configuration,DynamicDevice, 1, 00, 00, 00, 00

[FilterHW.AddReg]
HKR,,"UpperFilters",0x00010000,"OAfilt"

[SB1140FriendlyName.AddReg]
HKR,,FriendlyName,,%SB1140.Desc%

[SB1260FriendlyName.AddReg]
HKR,,FriendlyName,,%SB1260.Desc%

[CoInst.AddReg]
HKR,,CoInstallers32,0x00010000,"OAInst.dll,CtDevCoInstProc"
HKR,,OriginalSourcePath,,%01%
HKLM,%CoInstallerInfo%,%DvInstallerName%,,%DvININame%

[Filter.CopyList]
OAfilt.sys

[CoInst.CopyList]
OAInst.dll

[DLL.CopyList.ntx86]
ctmmactl.DLL

[DLL.CopyList.amd64]
ctmmactl.DLL

[DestinationDirs]
DefaultDestDir		= 10,system32\drivers
Filter.CopyList 	= 10,system32\drivers		; %SystemRoot%\system32\drivers
CoInst.CopyList		= 11				; %SystemRoot%\system32
DLL.CopyList.ntx86	= 11				; %SystemRoot%\system32
DLL.CopyList.amd64	= 10,SysWOW64			; %SystemRoot%\SysWOW64

[SourceDisksNames]
101 = %DriverDisk%,,

[SourceDisksFiles]
OAInst.dll    = 101,WinXP\I386
OAfilt.sys    = 101,WinXP\I386
ctmmactl.DLL  = 101,WinXP\I386

[SourceDisksFiles.amd64]
OAInst.dll    = 101,WinXP\AMD64
OAfilt.sys    = 101,WinXP\AMD64
ctmmactl.DLL  = 101,WinXP\I386

[Strings]
CREAF					= "CREATIVE"
MfgName					= "Creative Technology Ltd."
DriverDisk				= "Creative Installer"

SB1140.Desc				= "SB Play!"
SB1260.Desc				= "SB Easy Record/SB Connect Hi-Fi"
KSNAME_MS				= "GLOBAL"

SB1140.ntx86       			= "SOFTWARE\Creative Tech\CreativeAdvancedMB\VEN_041E&DEV_30D3&SUBSYS_00000000"
SB1140.amd64       			= "SOFTWARE\Wow6432Node\Creative Tech\CreativeAdvancedMB\VEN_041E&DEV_30D3&SUBSYS_00000000"
SB1260.ntx86       			= "SOFTWARE\Creative Tech\CreativeAdvancedMB\VEN_041E&DEV_30D8&SUBSYS_00000000"
SB1260.amd64       			= "SOFTWARE\Wow6432Node\Creative Tech\CreativeAdvancedMB\VEN_041E&DEV_30D8&SUBSYS_00000000"

WaveOutDevName	         		= "WaveOutName"
WaveInDevName	          		= "WaveInName"
MixerDevName	           		= "MixerName"

Proxy.CLSID               		= "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_AUDIO          		= "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER         		= "{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_CAPTURE        		= "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_TOPOLOGY       		= "{DDA54A40-1E4C-11D1-A050-405705C10000}"

;; String for CoInstaller
CoInstallerInfo            ="SYSTEM\CurrentControlSet\Control\Creative Tech\Coinstaller"
DvInstallerName            ="OAInst"
DvININame                  ="ctOA.ini"