Dungeon Finder Bang

Ever missed a Dungeon Finder queue because you were surfing and had WoW in the background? No more! This addon will unmute sound (if muted) and play a sound when the Dungeon Finder accept window pops up (even when backgrounded.)

There are a few configuration options for controlling
the volume of the playback, have a look in DFBang.lua for details.

4.0.1 patch update:
I have removed the ability to set your own soundfile in the configuration
until I can find a clean solution to a certain problem. If you really want
your own however you can still muck around in the code or overwrite bang.mp3.

6.0.2 patch notes:
It seems Blizzard broke PlaySoundFile() so only ogg files are working at the
moment.

FAQ:

Q: Will it re-mute (if originally muted) my sound after playing the sound?
A: Of course.

Q: Will it disable background sound playback (if disabled before) after playing the sound?
A: Indeed.

Q: Will it set my volume to what I had before if I enable loudness?
A: Aye.

Q: How many dungeon queues have you missed since you wrote this addon?
A: None!

Q: Is there a similar addon for battleground queues?
A: There is now! You can find it here.

Q: Background sound doesn't work!
A: There seems to be an issue for some where addons cannot enable background sound, so you have to do that manually unfortunately (check the Background sound checkbox in sound options). I've tried to fix it but nothing works. Sorry for the inconvenience.

v1.2.3: Ogg files are working so custom sound is available again.

v1.2.2: 6.0.2 update, custom sounds currently unavailable.

v1.2-1: Toc update.

v1.2: Should no longer turn off sound automatically when you don't want it to.

v1.1: 5.1 update and making sure SFX volume is above zero while playing the bang.

I do not have Windows 7 so I don't know if that would be an issue, but I doubt it. Did the sound work at all during that session? Did you install the addon correctly? Did you replace bang.mp3 with your own file or change mySoundFile to something else? If you did, make sure you didn't misspell the new file (and new file should be wav or mp3.) You could try setting iRHasOwnSoundFile to false and see if that works. Let me know how it goes.

Originally posted by natch I do not have Windows 7 so I don't know if that would be an issue, but I doubt it. Did the sound work at all during that session? Did you install the addon correctly? Did you replace bang.mp3 with your own file or change mySoundFile to something else? If you did, make sure you didn't misspell the new file (and new file should be wav or mp3.) You could try setting iRHasOwnSoundFile to false and see if that works. Let me know how it goes.

Nope I just used the default sound file - it works fine if I'm in the game.

Part of the reason could be that the included sound (file) is fairly difficult to differentiate from the default sound WoW makes when a group is found. Play it outside of WoW and can hear what it sounds like, so is easier to notice it.

Which leads into the problem I've experienced on testing here. The local iRWantLoudness = (xx); & local iRHasLoudnessVolume = (xx); -- Volume in percent (lines 13 & 14) do nothing. At all.

I have my default WoW master volume set to 40% with the Ambience & Sound sliders set to High. Also have Sound in Background checkmarked.

First test, left DFBang.lua at its defaults. Upon getting a dungeon invite with WoW in foreground, the default WoW sound played and so did bang.mp3. Quite difficult to hear the MP3, as noted above, but could hear it.

Next test, changed local iRWantLoudness = to true from the default false. And local iRHasLoudnessVolume = to 60 from the default 50. Exited, restarted, queued up for another dungeon. Both sounds played but the MP3 didn't sound any louder at all.

Next, changed the value to 80. Same thing.

Finally changed it to 100. Same thing.

So the method you are using to adjust the volume doesn't work here in testing. And yes, the lines were set correctly with a proper text editor. At least the MP3 actually plays.

I'm sorry you're having issues as I have none of which you describe. I get a very noticeable difference in volume when using loudness and changing loudness volume, I also chose the included bang.mp3 because it (to my ears) seems to cut through almost everything making it very easy to hear. You can easily replace it with something that suits you better though. Just copy something over bang.mp3 or copy a new file to the addon directory and edit mySoundFile in DFBang.lua.

I can confirm that the toggle of Sound_EnableSoundWhenGameIsInBG (and possibly others) is not working as intended (I am using Windows 7 32). However, I don't think this is a problem with the code, rather Blizzard's handling of it. The code retrieves and sets the CVar properly. The problem is that even when it is turned on before the sound execution, it still does not take immediate effect. I am working on a workaround now as I intend to something similar in an add-on that I am working on.

OK... it seems like it is impossible to do what I was hoping. Basically, once WoW is in the BG, sound can not be re-enabled with "Sound in Background" until WoW is truely no longer in the background, even if the cVar is changed.

Also, volume is dynamic, so turning the volume back down immediately follow the playsound does nothing.