From 79db736fc9eae3d95ff32c528082ac44842a4c9d Mon Sep 17 00:00:00 2001 From: Marco Bavagnoli Date: Mon, 6 May 2024 14:21:30 +0200 Subject: [PATCH] Update lib/src/soloud.dart Co-authored-by: Filip Hracek --- lib/src/soloud.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/soloud.dart b/lib/src/soloud.dart index ba0f787..981e814 100644 --- a/lib/src/soloud.dart +++ b/lib/src/soloud.dart @@ -292,6 +292,7 @@ interface class SoLoud { // the release of the native player. // Just deinit the engine to be re-inited later. if (SoLoudController().soLoudFFI.isInited()) { + _log.warning("init() called when the native player is already initialized. This is expected after a hot restart but not otherwise. If you see this in production logs, there's probably a bug in your code. You may have neglected to deinit() SoLoud during the current lifetime of the app."); deinit(); }