Skip to content

Commit 1c30949

Browse files
committed
chore
1 parent 26dc810 commit 1c30949

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"cwd": "${workspaceFolder}"
9090
},
9191
{
92-
"name": "Chrome release",
92+
"name": "Chrome wasm release",
9393
"type": "chrome",
9494
"preLaunchTask": "compile web wasm release",
9595
"request": "launch"

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"label": "compile web wasm release",
32-
"command": "cd ${workspaceFolder}/example; flutter run -d chrome --wasm --web-browser-flag '--disable-web-security' -t lib/audio_data/audio_data.dart --release",
32+
"command": "cd ${workspaceFolder}/example; flutter run -d chrome --wasm --web-browser-flag '--disable-web-security' -t lib/buffer_stream/simple_noise_stream.dart --release",
3333
"type": "shell"
3434
},
3535
{

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#### 3.1.12 (xx Xxx 2025)
1+
#### 3.1.12 (21 Jun 2025)
22
- added `getStreamTimeConsumed()` to get the time consumed by a buffer stream of kind `BufferingType.released`. Since the position of this kind of stream is always 0, this method is useful to know the time already played.
3-
- fix pause/unpause of audio stream buffering.
3+
- fix pause/unpause on audio stream buffering.
44
- added `buffer_stream/simple_noise_stream.dart` example.
55

66
#### 3.1.11 (16 Jun 2025)

example/lib/buffer_stream/simple_noise_stream.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ class _SimpleNoiseState extends State<SimpleNoise> {
8383
mainAxisSize: MainAxisSize.min,
8484
spacing: 16,
8585
children: [
86-
// CheckBox to choose between BufferingType.released and BufferingType.preserved.
86+
// Choose between BufferingType.released and
87+
// BufferingType.preserved.
8788
Row(
8889
mainAxisAlignment: MainAxisAlignment.center,
8990
children: [
@@ -107,6 +108,7 @@ class _SimpleNoiseState extends State<SimpleNoise> {
107108
),
108109
],
109110
),
111+
Text('Buffering time needs: $bufferingTimeNeeds seconds'),
110112
OutlinedButton(
111113
onPressed: () async {
112114
/// Setup the buffer stream

example/lib/buffer_stream/websocket.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,9 @@ class _WebsocketExampleState extends State<WebsocketExample> {
321321
),
322322
const SizedBox(height: 16),
323323
BufferBar(
324-
bufferingType: BufferingType.preserved, sound: currentSound),
324+
bufferingType: BufferingType.preserved,
325+
sound: currentSound,
326+
),
325327
const SizedBox(height: 16),
326328
ValueListenableBuilder(
327329
valueListenable: streamBuffering,

0 commit comments

Comments
 (0)