Download
(3Kb)
Download
Updated: 11-24-10 09:40 AM
Pictures
File Info
Updated:11-24-10 09:40 AM
Created:10-15-10 07:42 AM
Downloads:2,120
Favorites:9
MD5:

Addon Sound Enabler

Version: 0.3
by: DarkStarX [More]

This addon is no longer needed!

As of patch 4.0.6 its once again possible to only hear addon sounds, just enable sounds and put your Master Volume up.

If you cant hear sounds from an addon that way, inform the addon author to add a 2nd param to the playsound(file) function with value "Master" this will play the sound over Master channel.

Looking like this: PlaySound("sound","Master")



Currently addon sounds only working if you enable at least Sound Effects, which means you hear all the standard sounds too all the time, many people including myself don't like that but wanna hear addon notification sounds.

So i wrote this addon as a temporary solution until Blizzard fix that.

The addon will enable sounds for a a limited duration when a addon plays a sound and after that disable the sound again, its standard set to 2 seconds but you can change it to a value between 1 and 10 seconds in the interface options.


During that time you will hear other in-game sounds as well nothing to do about that, but at least you wont hear them as long no addon wanna play a sound.

Because the addon cannot differ if a 3rd party addon or one of the Blizzard addons wanna play a sound, the addon includes a ignore list with all sounds the Blizzard addons play located in "AddonSoundIgnore.lua".

If one of your addons play those files too and you dont want to ignore them open that file find the right sound and replace the 1 with a 0.

Important:

If you have set a Master Volume and/or Sound Volume it will use that settings, if you have either of them on mute it will be turned to 100% during the play and then back to 0%.

You need to have at least Enable Sound checked all other can be off.

If you change your sound settings you need to do a /reload or the addon will change to your old settings after a sound was played.

version 0.3
-I changed it back to a normal hook as it was in version 0.1, because this allows to hear even short sounds, but also added a option to let it work with a secure hook (as it worked in version 0.2) for those having tainting issues

version 0.2
-changed the hook to a secure one to solve the taint issuses occuring sometimes for some people (i am not sure if even my addon were producing that, if you still get it by another addon i would like to know)
-added the playsoundkitid function
Post A Reply Comment Options
Unread 01-06-11, 08:44 AM  
Dorwido
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 54
File comments: 74
Uploads: 17
Originally posted by Kramarz
[b]guess that's abandoned? :-(
what means abadoned, there are no updates because it does what it should do and you are the first reporting an error :P

What options do you use and does it come all time or only sometimes, need as much input as possible for myself it works fine except sometimes the tainting issues which i cant change and seems to be a blizzard problem.
__________________
Auction Analytics
http://www.wowauction.org/
Report comment to moderator  
Reply With Quote
Unread 01-06-11, 07:25 AM  
Kramarz
A Kobold Labourer

Forum posts: 0
File comments: 194
Uploads: 0
guess that's abandoned? :-(

Date: 2011-01-06 13:24:11
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\AddonSound\AddonSound.lua line 108:
attempt to call global 'orig_playsoundfile' (a nil value)
Debug:
[C]: orig_playsoundfile()
AddonSound\AddonSound.lua:108:
AddonSound\AddonSound.lua:104
[C]: PlaySoundFile()
Prat-3.0\addon\addon.lua:719: PlaySound()
Prat-3.0\modules\Sounds.lua:645: PlaySound()
Prat-3.0\modules\Sounds.lua:637: ?()
...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:147:
...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:147
[string "safecall Dispatcher[9]"]:4:
[string "safecall Dispatcher[9]"]:4
[C]: ?
[string "safecall Dispatcher[9]"]:13: ?()
...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:92: Fire()
Prat-3.0\addon\addon.lua:669:
Prat-3.0\addon\addon.lua:565
(tail call): ?
..\FrameXML\ChatFrame.lua:2550:
..\FrameXML\ChatFrame.lua:2543
[C]: pcall()
Stubby\Stubby.lua:379:
Stubby\Stubby.lua:325
(tail call): ?
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1
Report comment to moderator  
Reply With Quote
Unread 10-23-10, 01:36 PM  
Dorwido
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 54
File comments: 74
Uploads: 17
i had that error already too and reloading the ui made it work again, i am not sure how it comes to that error it seems to appear only under certain conditions.
And only had that on my 2nd pc which runs other addons also, so it could be that some other addon produces the problem and my one is only showed due the hook it uses on playsound function.

but well i will later release a version using a secure hook which is a post hook instead of pre hook but with that it could cut of a bit of the sound, because the sound will be then only enabled after playsound function is called and not before.

if the error appears then too with an other addon called would be nice to see the error message.
Report comment to moderator  
Reply With Quote
Unread 10-23-10, 11:48 AM  
kbc8090
A Murloc Raider

Forum posts: 6
File comments: 73
Uploads: 0
This addon is tainting the blizzard glyph ui

Error occured in: AddOn: AddonSound
Count: 1
Message: Error: AddOn AddonSound attempted to call a forbidden function (CastGlyph()) from a tainted execution path.
Debug:
[C]: CastGlyph()
...terface\AddOns\Blizzard_GlyphUI\Blizzard_GlyphUI.lua:585: GlyphFrameSpell_OnClick()
[string "*:OnClick"]:1:
[string "*:OnClick"]:1

I assume since it's not part of the frame xml it thinks the glyph ui is a separate addon.
Report comment to moderator  
Reply With Quote
Unread 10-15-10, 02:44 PM  
Dorwido
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 54
File comments: 74
Uploads: 17
Originally posted by Stanzilla
the deactivation of sounds does not really seem to work. it turns effects on but not off seems to work a bit better when enable sound is toggled off, weird :/
you had sound effects disabled when starting the game? if not and you changed it you need todo a /reload

because the addon only gather your sound settings at start or after doing a /reload, because if other mods change sound settings too and turn the sound on and my addon would catch then the settings on the fly it would be messed up.
Report comment to moderator  
Reply With Quote
Unread 10-15-10, 02:35 PM  
Stanzilla
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 34
File comments: 146
Uploads: 6
the deactivation of sounds does not really seem to work. it turns effects on but not off seems to work a bit better when enable sound is toggled off, weird :/
Last edited by Stanzilla : 10-15-10 at 02:37 PM.
Report comment to moderator  
Reply With Quote
Unread 10-15-10, 11:39 AM  
Relaya
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
You are a god among men. I would be honored to have your children!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.