Skip to content

Commit

Permalink
dart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Apr 4, 2024
1 parent 65e98f5 commit 52a744c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
7 changes: 0 additions & 7 deletions lib/src/audio_isolate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ enum MessageEvents {
exitIsolate,
initEngine,
startLoop,
stopLoop,
loop,
loadFile,
loadWaveform,
Expand Down Expand Up @@ -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) {
Expand Down
21 changes: 5 additions & 16 deletions lib/src/soloud.dart
Original file line number Diff line number Diff line change
Expand Up @@ -492,22 +492,6 @@ interface class SoLoud {
return true;
}

/// stop the [SoundEventType]s loop
///
Future<bool> _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
// ////////////////////////////////////////////////
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/src/soloud_capture.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:async';
import 'dart:ffi' as ffi;

import 'package:flutter_soloud/src/enums.dart';
Expand Down

0 comments on commit 52a744c

Please sign in to comment.