Refactored audio resource viewer code