File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ void SoundBlocks::registerBlocks(IEngine *engine)
3333 engine->addInput (this , " VOLUME" , VOLUME);
3434}
3535
36+ void SoundBlocks::onInit (IEngine *engine)
37+ {
38+ m_waitingSounds.clear ();
39+ // TODO: Remove stopped threads from m_waitingSounds
40+ }
41+
3642bool SoundBlocks::compilePlayCommon (Compiler *compiler, bool untilDone, bool *byIndex)
3743{
3844 Target *target = compiler->target ();
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ class SoundBlocks : public IBlockSection
3636 std::string name () const override ;
3737
3838 void registerBlocks (IEngine *engine) override ;
39+ void onInit (IEngine *engine) override ;
3940
4041 static bool compilePlayCommon (Compiler *compiler, bool untilDone, bool *byIndex = nullptr );
4142 static void compilePlay (Compiler *compiler);
You can’t perform that action at this time.
0 commit comments