Quantcast WoWInterface - View Single Post - PlaySound()
Thread: PlaySound()
View Single Post
07-17-17, 12:20 PM   #5
Jarod24
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 66
Is there's anyone that could maybe elaborate for me how/why this new SOUNDKIT approach is better?

I don't quite see the logic in why Blizzard would change PlaySound() from accepting an input string (i.e a filepath) into taking a numbered id instead.

How much more costly (time, cpu, memory) is it to support an occasional lookup of a new string (I presume they implemented a cached table of most used paths for faster re-lookup) compared to pre-enumerating ALL sounds in the game into a LUA table and having to maintain such a table.


Edit: Seems I got PlaySound() and PlaySoundFile() mixed up. It all makes sense now.
__________________
Author of IfThen, Links in Chat

Last edited by Jarod24 : 07-17-17 at 03:48 PM.
  Reply With Quote