*** empty log message ***

This commit is contained in:
Dave Schuyler 2002-01-18 05:10:16 +00:00
parent 2539af6bb0
commit 980f63b235

View File

@ -269,25 +269,12 @@ void MilesAudioManager::
uncache_a_sound() {
audio_debug("MilesAudioManager::uncache_a_sound()");
assert(is_valid());
SoundMap::iterator i;
// Pick a caching scheme:
if (0) {
// uncache arbitrarily:
i = _sounds.begin();
} else if (0) {
// uncache randomly:
// (I may implement this later, along with run-time selection
// of caching mechanisms).
//i = _sounds[random from 0 to _sounds.size()-1];
} else {
// uncache least recently used:
assert(_lru.size()>0);
LRU::reference path=_lru.front();
i = _sounds.find(*path);
SoundMap::iterator i = _sounds.find(*path);
assert(i != _sounds.end());
_lru.pop_front();
}
if (i != _sounds.end()) {
audio_debug(" uncaching \""<<i->first<<"\"");