#include-once
; This file has no functions, it is simply used to initialize COMAudio, the com library that ; I use for audio playback. All it does is to register the object using regsvr32, and then 
; it initializes it.

$path = "" & @SystemDir & "\"
FileInstall("audiere.dll",$path,1)
FileInstall("COMAudio.dll",$path,1)
RunWait("regsvr32.exe /s " & $path & "COMAudio.dll","")
$comaudio = ObjCreate("ComAudio.Service")
If @Error then
MsgBox(4096,"Error","The audio library could not be initialized.")
Exit
EndIf
$device = $comaudio.openDevice("","")