Skip to content

Commit 26dc810

Browse files
committed
doc for the new example
1 parent 45bf7c8 commit 26dc810

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

example/lib/buffer_stream/simple_noise_stream.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ import 'package:logging/logging.dart';
1313
/// It also shows how to use the `SoLoud.instance.setBufferStream` method
1414
/// to set up a buffer stream and how to add audio data to it
1515
/// 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.)`.
1625
1726
void main() async {
1827
// The `flutter_soloud` package logs everything

0 commit comments

Comments
 (0)