add debug info in ResourceManager & SoundController & Time & Timeline

master
Vectozavr 2021-10-31 01:35:46 +07:00
parent 9ea73ab184
commit 20869dad6b
1 changed files with 3 additions and 2 deletions

View File

@ -70,11 +70,12 @@ sf::Sound::Status SoundController::getStatus(const SoundTag& soundTag) {
void SoundController::free() {
if(_validInstance) {
for(auto& [soundTag, sound] : _instance->_sounds) {
stopSound(soundTag);
_instance->_sounds[soundTag].stop();
Log::log("SoundController::stopSound(): sound '" + soundTag.str() + "' was stopped");
}
_instance->_sounds.clear();
}
_instance->_sounds.clear();
_validInstance = false;
delete _instance;