I tried all of those steps, verified the wav does work in multiple audio players. The log itself is not making mention of calls to sound.play, but the rest of the script is paired with control of a seatbelt sign and no smoking light, which is running flawlessly. Example:
function MOUSE_NOSMK_SWITCH(varname, value, userParameter)
smkNEW = ipc.readLvar("L:switch_103_73X")
smkLT = ipc.readUB(0x341C) -- Read the light position
if smkNEW == 100 then
if smkLT == 0 then
ipc.control(66718)
end
elseif smkNEW == 0 then
if smkLT == 1 then
ipc.control(66718)
sound.path("F:\\FSUIPC")
sound.play("bong",2)
-- ipc.sleep(2000)
end
end
end
event.Lvar("switch_103_73X",100,"MOUSE_NOSMK_SWITCH")
When I insert and remove delays, the code seems to run appropriately just no sound.
Device 2 is a USB 3.0 PreSonus Studio 192 and it's been working fine for all other MSFS related sounds.