3
3
import 'dart:async' ;
4
4
import 'dart:ffi' as ffi;
5
5
6
+ import 'package:flutter/foundation.dart' ;
6
7
import 'package:flutter/services.dart' ;
7
8
import 'package:flutter_soloud/src/audio_source.dart' ;
8
9
import 'package:flutter_soloud/src/enums.dart' ;
@@ -17,27 +18,6 @@ import 'package:http/http.dart' as http;
17
18
import 'package:logging/logging.dart' ;
18
19
import 'package:meta/meta.dart' ;
19
20
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
-
41
21
/// The main class to call all the audio methods that play sounds.
42
22
///
43
23
/// This class has a singleton [instance] which represents the (also singleton)
@@ -145,7 +125,7 @@ interface class SoLoud {
145
125
@internal
146
126
final Map <SoundHandle , Completer <void >> voiceEndedCompleters = {};
147
127
148
- /// Initialize the audio engine.
128
+ /// Initializes the audio engine.
149
129
///
150
130
/// Run this before anything else, and `await` its result in a try/catch.
151
131
/// Only when this method returns without throwing exceptions will the engine
@@ -1454,11 +1434,6 @@ interface class SoLoud {
1454
1434
}
1455
1435
}
1456
1436
1457
- /// Deprecated alias of [getFilterParameter] .
1458
- @Deprecated ("Use 'getFilterParams' instead" )
1459
- double getFxParams (FilterType filterType, int attributeId) =>
1460
- getFilterParameter (filterType, attributeId);
1461
-
1462
1437
/// Gets the value of a parameter of the given [filterType] .
1463
1438
///
1464
1439
/// Specify the [attributeId] of the parameter (which you can learn from
0 commit comments