sound not loading
Posted: Mon Nov 21, 2011 2:37 pm
MM verson 1.02 loaded
I have put the file in the directory printed by the warning. In the cmd window, I copied the path and placed it into Internet Explorer and it played fine. I run the script and the warning occurs. the sound is not loaded.
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?
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?