2493236cea6623ab6059c5ec31310c871f61e697
This doesn't give full refcounting: loading a sound that isn't preloaded will still go through a full load (eg. initting Vorbis, etc). This handles the most expensive case, where the whole sound is loaded. This case is easy because we can make free copies, and track the number of copies remaining to handle cleanup.
Languages
C++
85.7%
Lua
4.3%
C
4.3%
Rich Text Format
2.3%
CMake
1.1%
Other
2%