Thread Tools Display Modes
06-21-06, 03:38 PM   #1
Anarchos
A Murloc Raider
Join Date: Jan 2006
Posts: 5
PlaySoundFile, not working anymore?

Hi,..

This is a lil bit of a mod I use to notify me when my "nightfall" aura is on myself. (A warlock thing). Anyhow, as you can directly see, it simple places a text message in chat, and more importantly plays a short .wav file.

Well,.. Here recently, I'm not quite sure if it was the 1.11 patch or not, it has not been playing the sound. Nothing has changed, except I added a line or two or code for testing purposes.

Here is the code.

Code:
function NightfallProc_onLoad()
	this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_BUFFS");
	DEFAULT_CHAT_FRAME:AddMessage("NightfallProc Version 1 loaded.");
end

function NightfallProc_onEvent(event)
		if (arg1 == "You gain Shadow Trance.") then			
                       DEFAULT_CHAT_FRAME:AddMessage("Testing, Next should be sound, then Nightfall!, then Sound");
                        PlaySoundFile("Interface\\AddOns\\NightfallProc\\cpi.wav");
                        DEFAULT_CHAT_FRAME:AddMessage("Nightfall!");
			PlaySoundFile("Interface\\AddOns\\NightfallProc\\cpi.wav");
		end;
end
Now the result from that code is *now* simple "Testing, Next should be sound, then Nightfall!, then Sound. (Next chat line) "Nightfall!"

With no sound played!

Two things, it worked fine before the patch, so it makes me believe that for some reason "PlaySoundFile" doesn't work?

Any ideas on how to get this working, it was a HUGE part of the way I play.

Thank you so much,
  Reply With Quote
06-21-06, 03:40 PM   #2
Logdan
A Black Drake
Join Date: Dec 2005
Posts: 83
http://forums.worldofwarcraft.com/th...p=1#post398491
  Reply With Quote
06-21-06, 03:47 PM   #3
Anarchos
A Murloc Raider
Join Date: Jan 2006
Posts: 5
Thanks -- So it is "Broken".. =/

I noticed PlaySound() is reported to work..

Could I work that into this script?

There has to be a reason for the "File" end of the call command so I'd think PlaySound() wouldn't be able to pull from a pre-set file?

Any workarounds?

Thanks
  Reply With Quote
06-21-06, 03:58 PM   #4
Iriel
Super Moderator
WoWInterface Super Mod
Featured
Join Date: Jun 2005
Posts: 578
The 'workaround' is to wait patiently for 1.11.1

Until then I suspect there's nothing we can do.
  Reply With Quote
06-21-06, 05:05 PM   #5
Anarchos
A Murloc Raider
Join Date: Jan 2006
Posts: 5
Originally Posted by Iriel
The 'workaround' is to wait patiently for 1.11.1

Until then I suspect there's nothing we can do.
I see -- So no work around using the API PlaySound() ?

There is a default sound the game plays for the aura I am speaking of,.. (My Nightfall Aura), Would there be a way to tap into this and get it to play a different soundfile?

Thanks,
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » PlaySoundFile, not working anymore?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off