Code: Select all
soundresource = soundLoad(getExecutionPath() .. "/alarm.wav");
if( soundresource == nil ) then
warning("Failed to load sound file " .. getExecutionPath() .. "/alarm.wav");
end
I am running Windows 7. Could it be that the function is not compatible with W7?
I also placed wav file in multiple areas and it will not load. I have also used a path "C:\micromacro\alarm.wav", "/micromacro/alarm.wav", "C:/micromacro/alarm.wav". None worked when the files was in the main folder. Any thoughts?