Page 1 of 1

sound not loading

Posted: Mon Nov 21, 2011 2:37 pm
by Kazaroth
MM verson 1.02 loaded

Code: Select all

	soundresource = soundLoad(getExecutionPath() .. "/alarm.wav");
	if( soundresource == nil ) then
		warning("Failed to load sound file " .. getExecutionPath() .. "/alarm.wav");
	end
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?

Re: sound not loading

Posted: Mon Nov 21, 2011 4:52 pm
by Administrator
Install OpenAL.