Skip to content

Commit b82bff6

Browse files
committed
++
1 parent d5e4218 commit b82bff6

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

lib/src/soloud.dart

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import 'dart:async';
44
import 'dart:ffi' as ffi;
55

6+
import 'package:flutter/foundation.dart';
67
import 'package:flutter/services.dart';
78
import 'package:flutter_soloud/src/audio_source.dart';
89
import 'package:flutter_soloud/src/enums.dart';
@@ -17,27 +18,6 @@ import 'package:http/http.dart' as http;
1718
import 'package:logging/logging.dart';
1819
import 'package:meta/meta.dart';
1920

20-
/// The events exposed by the plugin.
21-
enum AudioEvent {
22-
/// Emitted when audio isolate is started.
23-
isolateStarted,
24-
25-
/// Emitted when audio isolate is stopped.
26-
isolateStopped,
27-
28-
/// Emitted when audio capture is started.
29-
captureStarted,
30-
31-
/// Emitted when audio capture is stopped.
32-
captureStopped,
33-
}
34-
35-
/// TODO(all): could it be possible to move `_loader.initialize()` from
36-
/// `init()` to somewhere else? Doing so we can make `init()` sync.
37-
/// TODO(all): `loadWaveform()`, `speechText()`, 'play()', `play3d` can be sync.
38-
/// TODO(marco): add loadMem
39-
/// TODO(marco): modify AudioEvent
40-
4121
/// The main class to call all the audio methods that play sounds.
4222
///
4323
/// This class has a singleton [instance] which represents the (also singleton)
@@ -145,7 +125,7 @@ interface class SoLoud {
145125
@internal
146126
final Map<SoundHandle, Completer<void>> voiceEndedCompleters = {};
147127

148-
/// Initialize the audio engine.
128+
/// Initializes the audio engine.
149129
///
150130
/// Run this before anything else, and `await` its result in a try/catch.
151131
/// Only when this method returns without throwing exceptions will the engine
@@ -1454,11 +1434,6 @@ interface class SoLoud {
14541434
}
14551435
}
14561436

1457-
/// Deprecated alias of [getFilterParameter].
1458-
@Deprecated("Use 'getFilterParams' instead")
1459-
double getFxParams(FilterType filterType, int attributeId) =>
1460-
getFilterParameter(filterType, attributeId);
1461-
14621437
/// Gets the value of a parameter of the given [filterType].
14631438
///
14641439
/// Specify the [attributeId] of the parameter (which you can learn from

src/bindings.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ extern "C"
6161

6262
void stateChangedCallback(unsigned int state)
6363
{
64-
printf("BINDINGS.CPP PLAYER stateChangedCallback state: %d \n", state);
6564
PlayerStateEvents *type = (PlayerStateEvents *)malloc(sizeof(unsigned int *));
6665
*type = (PlayerStateEvents)state;
6766
if (dartStateChangedCallback != nullptr)

0 commit comments

Comments
 (0)