Game Development Community

Purging sounds from memory

by Andy Schatz · in Torque Game Engine · 08/23/2005 (4:50 pm) · 3 replies

What do I need to do to purge a sound from memory? Currently, when I call alxPlay, the ResourceManager loads in the sound. Then, when ResManager::purge is called, many assets are unloaded, but not the sounds.

I currenlty have a piece of music that is playing during the shell, but never in game, and I want to unload it while I am in game.

#1
08/23/2005 (4:53 pm)
Maybe you have to delete the audioprofile? The ResourceManager only purges unreferenced ResourceObjects IIRC. So the problem might be that it's not getting unreferenced.
#2
08/23/2005 (5:35 pm)
That did the trick, thanks Ben.
#3
08/23/2005 (9:29 pm)
Awesome, glad the problem was so easily fixed. :)