File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
example/lib/buffer_stream Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ import 'package:logging/logging.dart';
13
13
/// It also shows how to use the `SoLoud.instance.setBufferStream` method
14
14
/// to set up a buffer stream and how to add audio data to it
15
15
/// using `SoLoud.instance.addAudioDataStream` .
16
+ ///
17
+ /// As you can see, the playing position of the sound is always at 0 when the
18
+ /// buffering type is `BufferingType.released` .
19
+ /// When the buffering type is `BufferingType.preserved` , all is normal as for
20
+ /// the other "normal" sounds, and the playing position can be get using
21
+ /// `SoLoud.instance.getPosition(handle)` .
22
+ /// When the buffering type is `BufferingType.released` , the sound is
23
+ /// always at the beginning, and the position is get using
24
+ /// `SoLoud.instance.getStreamTimeConsumed(sound.)` .
16
25
17
26
void main () async {
18
27
// The `flutter_soloud` package logs everything
You can’t perform that action at this time.
0 commit comments