diff --git a/lib/src/audio_isolate.dart b/lib/src/audio_isolate.dart index 27052b7..4f11a8f 100644 --- a/lib/src/audio_isolate.dart +++ b/lib/src/audio_isolate.dart @@ -22,7 +22,6 @@ enum MessageEvents { exitIsolate, initEngine, startLoop, - stopLoop, loop, loadFile, loadWaveform, @@ -361,12 +360,6 @@ void audioIsolate(SendPort isolateToMainStream) { ); break; - case MessageEvents.stopLoop: - loopRunning = false; - isolateToMainStream - .send({'event': MessageEvents.stopLoop, 'args': (), 'return': ()}); - break; - case MessageEvents.loop: if (loopRunning) { for (final sound in activeSounds) { diff --git a/lib/src/soloud.dart b/lib/src/soloud.dart index 4a772bb..e332308 100644 --- a/lib/src/soloud.dart +++ b/lib/src/soloud.dart @@ -492,22 +492,6 @@ interface class SoLoud { return true; } - /// stop the [SoundEventType]s loop - /// - Future _stopLoop() async { - _log.finest('_stopLoop() called'); - if (_isolate == null || !_isEngineInitialized) return false; - - _mainToIsolateStream?.send( - { - 'event': MessageEvents.stopLoop, - 'args': (), - }, - ); - await _waitForEvent(MessageEvents.stopLoop, ()); - return true; - } - // //////////////////////////////////////////////// // Below all the methods implemented with FFI for the player // //////////////////////////////////////////////// @@ -1677,6 +1661,11 @@ interface class SoLoud { } } + /// Deprecated alias of [getFilterParameter]. + @Deprecated("Use 'getFilterParams' instead") + double getFxParams(FilterType filterType, int attributeId) => + getFilterParameter(filterType, attributeId); + /// Gets the value of a parameter of the given [filterType]. /// /// Specify the [attributeId] of the parameter (which you can learn from diff --git a/lib/src/soloud_capture.dart b/lib/src/soloud_capture.dart index 035a924..7a2f333 100644 --- a/lib/src/soloud_capture.dart +++ b/lib/src/soloud_capture.dart @@ -1,4 +1,3 @@ -import 'dart:async'; import 'dart:ffi' as ffi; import 'package:flutter_soloud/src/enums.dart';