This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Identify currently-playing sound file -- how to?
Post Reply
Return to board index
Post by
fwcain
I'd like to know how (or even *if*) I can get the game to tell me which specific sound file it is currently playing. I'm hoping there is some quasi-secret (i.e. unknown to me) macro command that I'll need to use.
Can anyone out there please help me with this? Thanks!
Post by
550132
This post was from a user who has deleted their account.
Post by
fwcain
I just tried those two (thanks, BTW), and they just mirror back their code. That is, my character "says" the macro's code, instead of the name of the sound-file. Did I do something wrong?
Post by
HighFive
http://www.mmo-champion.com/threads/709539-HowTo-Make-a-code-snippet-into-an-addon-in-twelve-easy-steps
This is pretty short, though.
You could do just/run hooksecurefunc('PlaySound',function(sound) print('PlaySound:',sound) end) hooksecurefunc('PlaySoundFile',function(sound) print('PlaySoundFile:',sound) end)
Post by
Neffi
Sorry, I sometimes go on the assumption that people know how to code.
Whenever you see a block like that, you can either condense it into a /run command just like HighFive did above (it's okay to remove line-breaks and make it all one line, Lua scripts are not sensitive to that). Or you can take the code as-is, and place it in a
DevPad
page, and then execute it (play button seen at the top-left of the text input window
>here<
.) DevPad is especially nice, because you can also have it automatically execute scripts upon login, so anytime you want to make a quasi-addon to do something like this, you can just put it inside a DevPad page and enable auto-execute. (Not to mention it also makes for a wonderful in-game notepad.)
Post by
fwcain
Thanks, all. Unfortunately, the results from this macro tell me that I've actually asked the wrong question. (Shame on me.)
What y'all gave me was a macro to begin identifying all of the sound-effects being played (e.g.: "open packs" or "open talents"). What I really wanted was the file-path of the scene-specific musical tracks (e.g.:
Lament of the Highborne
). Hopefully, this time I've phrased my request more accurately. ;-)
Thanks, again.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.