fixed audio resource delete function