in your browser.
Identify currently-playing sound file -- how to?
Return to board index
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!
This post was from a user who has deleted their account.
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?
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)
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
page, and then execute it (play button seen at the top-left of the text input window
.) 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.)
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. ;-)
You are not logged in. Please
to post a reply or
if you don't already have an account.
Connect with Wowhead
Other Fanbyte Sites
Hearthstone Top Decks
Final Fantasy XI
© 2021 Fanbyte