Skip to content

Commit

Permalink
Remove obsolete handling for adding sound player to soundclip
Browse files Browse the repository at this point in the history
Because this is now handled by Editor::onLayerEvent
  • Loading branch information
MrStevns committed Nov 3, 2024
1 parent d726d08 commit eac8709
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions core_lib/src/managers/soundmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,8 @@ bool SoundManager::init()
return true;
}

Status SoundManager::load(Object* obj)
Status SoundManager::load(Object*)
{
int count = obj->getLayerCount();
for (int i = 0; i < count; ++i)
{
Layer* layer = obj->getLayer(i);
if (layer->type() != Layer::SOUND)
{
continue;
}

LayerSound* soundLayer = static_cast<LayerSound*>(layer);

soundLayer->foreachKeyFrame([this](KeyFrame* key)
{
SoundClip* clip = dynamic_cast<SoundClip*>(key);
Q_ASSERT(clip);

createMediaPlayer(clip);
});
}
return Status::OK;
}

Expand Down

0 comments on commit eac8709

Please sign in to comment.