Skip to content

Commit a543947

Browse files
committed
Use native controller call to check ready state in getVisualizatonEnabled()
1 parent a49ee84 commit a543947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/soloud.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ interface class SoLoud {
361361
/// get the visualization flag from the player on C side.
362362
/// Eventually we can set this as a parameter during the
363363
/// initialization with some other parameters like `sampleRate`
364-
_isVisualizationEnabled = getVisualizationEnabled();
364+
_isVisualizationEnabled = _controller.soLoudFFI.getVisualizationEnabled();
365365

366366
// Initialize [SoLoudLoader]
367367
_loader.automaticCleanup = automaticCleanup;

0 commit comments

Comments
 (0)