diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 8768c06d4..90ac57533 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,9 +1,5 @@ name: Mark stale issues and pull requests -on: - schedule: - - cron: "0 0 * * *" - jobs: stale: diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index e2fd7f6a4..83edd6f73 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -7,6 +7,10 @@ permalink: changelog.html summary: The Changelog of The τ Project. toc: false --- +## 9.4.6 + +- Fixes some warning inside the example 'LivePlaybackWithoutBackPressure' + ## 9.4.5 - Debug traces from iOS FlutterSoundRecorder had an incorrect parameter. Merge PR [980](https://github.com/Canardoux/flutter_sound/pull/980) @@ -24,7 +28,6 @@ toc: false - Add the parameter "enableVoiceParameter" to the verb "StartPlayerFromMic()" - Add the parameter "enableVoiceParameter" to the verb "StartRecorderFromStream" - ## 9.3.8 - closePlayer() and closeRecorder was awaiting instead of returning a Future diff --git a/doc/_data/sidebars/mydoc_sidebar.yml b/doc/_data/sidebars/mydoc_sidebar.yml index 957235e08..4e4a052b0 100644 --- a/doc/_data/sidebars/mydoc_sidebar.yml +++ b/doc/_data/sidebars/mydoc_sidebar.yml @@ -3,7 +3,7 @@ entries: - title: sidebar product: Flutter Sound - version: 9.4.5 + version: 9.4.6 folders: - title: diff --git a/flutter_sound/CHANGELOG.md b/flutter_sound/CHANGELOG.md index c2c3a47f6..11fa9a8e5 100644 --- a/flutter_sound/CHANGELOG.md +++ b/flutter_sound/CHANGELOG.md @@ -1,4 +1,4 @@ -## 9.4.5 +## 9.4.6 - ## The [CHANGELOG file is here](https://flutter-sound.canardoux.xyz/changelog.html) diff --git a/flutter_sound/android/build.gradle b/flutter_sound/android/build.gradle index 8ff501235..3e916fcf1 100644 --- a/flutter_sound/android/build.gradle +++ b/flutter_sound/android/build.gradle @@ -1,6 +1,6 @@ group 'xyz.canardoux.fluttersound' -version '9.4.5' +version '9.4.6' buildscript { repositories { @@ -58,7 +58,7 @@ dependencies { // CAUTION: The following instruction is for developping and debugging the Flauto Engine // DO NOT INCLUDE THE FOLLOWING LINE IN A REAL APP !!! //implementation project(':flutter_sound_core') - implementation 'com.github.canardoux:flutter_sound_core:9.4.5' + implementation 'com.github.canardoux:flutter_sound_core:9.4.6' // ------------------------------------------------------------------------------------- } diff --git a/flutter_sound/example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart b/flutter_sound/example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart index f73e2ae5b..0909f290a 100644 --- a/flutter_sound/example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart +++ b/flutter_sound/example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart @@ -63,7 +63,7 @@ class LivePlaybackWithoutBackPressure extends StatefulWidget { class _LivePlaybackWithoutBackPressureState extends State { - FlutterSoundPlayer _mPlayer = FlutterSoundPlayer(); + final FlutterSoundPlayer _mPlayer = FlutterSoundPlayer(); bool _mPlayerIsInited = false; double _mSpeed = 100.0; @@ -72,7 +72,7 @@ class _LivePlaybackWithoutBackPressureState super.initState(); // Be careful : openAudioSession return a Future. // Do not access your FlutterSoundPlayer or FlutterSoundRecorder before the completion of the Future - _mPlayer!.openPlayer().then((value) { + _mPlayer.openPlayer().then((value) { setState(() { _mPlayerIsInited = true; }); @@ -82,7 +82,7 @@ class _LivePlaybackWithoutBackPressureState @override void dispose() { stopPlayer(); - _mPlayer!.closePlayer(); + _mPlayer.closePlayer(); super.dispose(); } @@ -100,8 +100,8 @@ class _LivePlaybackWithoutBackPressureState } void play() async { - assert(_mPlayerIsInited && _mPlayer!.isStopped); - await _mPlayer!.startPlayerFromStream( + assert(_mPlayerIsInited && _mPlayer.isStopped); + await _mPlayer.startPlayerFromStream( codec: Codec.pcm16, numChannels: 1, sampleRate: tSampleRate, @@ -110,13 +110,13 @@ class _LivePlaybackWithoutBackPressureState setState(() {}); var data = await getAssetData('assets/samples/sample.pcm'); feedHim(data); - if (_mPlayer != null) { + //if (_mPlayer != null) { // We must not do stopPlayer() directely //await stopPlayer(); - _mPlayer!.foodSink!.add(FoodEvent(() async { - await _mPlayer!.stopPlayer(); + _mPlayer.foodSink!.add(FoodEvent(() async { + await _mPlayer.stopPlayer(); setState(() {}); })); - } + //} } // --------------------- (it was very simple, wasn't it ?) ------------------- @@ -127,9 +127,9 @@ class _LivePlaybackWithoutBackPressureState } Future stopPlayer() async { - if (_mPlayer != null) { - await _mPlayer!.stopPlayer(); - } + //if (_mPlayer != null) { + await _mPlayer.stopPlayer(); + //} } @@ -148,7 +148,7 @@ class _LivePlaybackWithoutBackPressureState if (!_mPlayerIsInited) { return null; } - return _mPlayer!.isStopped + return _mPlayer.isStopped ? play : () { stopPlayer().then((value) => setState(() {})); @@ -180,12 +180,12 @@ class _LivePlaybackWithoutBackPressureState onPressed: getPlaybackFn(), //color: Colors.white, //disabledColor: Colors.grey, - child: Text(_mPlayer!.isPlaying ? 'Stop' : 'Play'), + child: Text(_mPlayer.isPlaying ? 'Stop' : 'Play'), ), const SizedBox( width: 20, ), - Text(_mPlayer!.isPlaying + Text(_mPlayer.isPlaying ? 'Playback in progress' : 'Player is stopped'), ]), diff --git a/flutter_sound/example/pubspec.yaml b/flutter_sound/example/pubspec.yaml index 07f349bfa..ffb7181b1 100644 --- a/flutter_sound/example/pubspec.yaml +++ b/flutter_sound/example/pubspec.yaml @@ -7,7 +7,7 @@ description: Driver for the various Flutter Sound examples # Both the version and the builder number may be overridden in flutter # build by specifying --build-name and --build-number, respectively. # Read more about versioning at semver.org. -version: 9.4.5 +version: 9.4.6 homepage: https://github.com/canardoux/flutter_sound/blob/master/flutter_sound/ @@ -35,15 +35,15 @@ dependencies: # ============================================================================ # The following instructions are just for developing/debugging Flutter Sound # Do not put them in a real App - flutter_sound_platform_interface: 9.4.5 + flutter_sound_platform_interface: 9.4.6 # path: ../../flutter_sound_platform_interface -# flutter_sound_web: 9.4.5 +# flutter_sound_web: 9.4.6 # path: ../../flutter_sound_web # flutter_sound_web Dir - flutter_sound: ^9.4.5 + flutter_sound: ^9.4.6 # path: ../ # Flutter Sound Dir # ============================================================================ -# flutter_sound_platform_interface: ^9.4.5 +# flutter_sound_platform_interface: ^9.4.6 path_provider: ^2.0.2 permission_handler: ^11.3.0 diff --git a/flutter_sound/ios/flutter_sound.podspec b/flutter_sound/ios/flutter_sound.podspec index ea4e3d099..edec4559c 100644 --- a/flutter_sound/ios/flutter_sound.podspec +++ b/flutter_sound/ios/flutter_sound.podspec @@ -3,7 +3,7 @@ # Pod::Spec.new do |s| s.name = 'flutter_sound' - s.version = '9.4.5' + s.version = '9.4.6' s.summary = 'Flutter plugin that relates to sound like audio and recorder.' s.description = <<-DESC Flutter plugin that relates to sound like audio and recorder. @@ -18,5 +18,5 @@ Flutter plugin that relates to sound like audio and recorder. s.ios.deployment_target = '10.0' s.static_framework = true - s.dependency 'flutter_sound_core', '9.4.5' + s.dependency 'flutter_sound_core', '9.4.6' end diff --git a/flutter_sound/pubspec.yaml b/flutter_sound/pubspec.yaml index 5ba078a3c..bee350986 100644 --- a/flutter_sound/pubspec.yaml +++ b/flutter_sound/pubspec.yaml @@ -1,5 +1,5 @@ name: flutter_sound -version: 9.4.5 +version: 9.4.6 description: 'Europe Stand With Ukraine. Pray for Ukraine. A complete api for audio playback and recording. Audio player, audio recorder.' #author: canardoux homepage: https://flutter-sound.canardoux.xyz/readme.html @@ -20,9 +20,9 @@ dependencies: flutter: sdk: flutter # ============================================================================ - flutter_sound_platform_interface: 9.4.5 + flutter_sound_platform_interface: 9.4.6 # path: ../flutter_sound_platform_interface # Flutter Sound Dir - flutter_sound_web: 9.4.5 + flutter_sound_web: 9.4.6 # path: ../flutter_sound_web # Flutter Sound Dir # ============================================================================ diff --git a/flutter_sound_platform_interface/.dart_tool/package_config.json b/flutter_sound_platform_interface/.dart_tool/package_config.json index 7bdfebc34..d2075983e 100644 --- a/flutter_sound_platform_interface/.dart_tool/package_config.json +++ b/flutter_sound_platform_interface/.dart_tool/package_config.json @@ -290,7 +290,7 @@ "languageVersion": "3.3" } ], - "generated": "2024-03-08T10:44:41.257451Z", + "generated": "2024-03-08T15:03:04.602141Z", "generator": "pub", "generatorVersion": "3.3.0" } diff --git a/flutter_sound_platform_interface/CHANGELOG.md b/flutter_sound_platform_interface/CHANGELOG.md index a803adfd9..09dca4185 100644 --- a/flutter_sound_platform_interface/CHANGELOG.md +++ b/flutter_sound_platform_interface/CHANGELOG.md @@ -1,4 +1,4 @@ -## 9.4.5 +## 9.4.6 - Please [look to this](https://flutter-sound.canardoux.xyz/changelog.html) diff --git a/flutter_sound_platform_interface/pubspec.yaml b/flutter_sound_platform_interface/pubspec.yaml index 603dc2818..01e467166 100644 --- a/flutter_sound_platform_interface/pubspec.yaml +++ b/flutter_sound_platform_interface/pubspec.yaml @@ -1,5 +1,5 @@ name: flutter_sound_platform_interface -version: 9.4.5 +version: 9.4.6 description: The Dart interface to Flutter Sound. #author: canardoux # NOTE: We strongly prefer non-breaking changes, even at the expense of a diff --git a/flutter_sound_web/.dart_tool/package_config.json b/flutter_sound_web/.dart_tool/package_config.json index 511202245..d6496a8ea 100644 --- a/flutter_sound_web/.dart_tool/package_config.json +++ b/flutter_sound_web/.dart_tool/package_config.json @@ -45,7 +45,7 @@ }, { "name": "flutter_sound_platform_interface", - "rootUri": "file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/flutter_sound_platform_interface-9.4.5", + "rootUri": "file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/flutter_sound_platform_interface-9.4.6", "packageUri": "lib/", "languageVersion": "3.3" }, @@ -182,7 +182,7 @@ "languageVersion": "3.3" } ], - "generated": "2024-03-08T10:44:51.164109Z", + "generated": "2024-03-08T15:03:14.559407Z", "generator": "pub", "generatorVersion": "3.3.0" } diff --git a/flutter_sound_web/.dart_tool/package_config_subset b/flutter_sound_web/.dart_tool/package_config_subset index 2469b7766..d50f732d7 100644 --- a/flutter_sound_web/.dart_tool/package_config_subset +++ b/flutter_sound_web/.dart_tool/package_config_subset @@ -24,8 +24,8 @@ file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/fake_async-1.3.1/ file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/ flutter_sound_platform_interface 3.3 -file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/flutter_sound_platform_interface-9.4.5/ -file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/flutter_sound_platform_interface-9.4.5/lib/ +file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/flutter_sound_platform_interface-9.4.6/ +file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/flutter_sound_platform_interface-9.4.6/lib/ js 3.1 file:///Volumes/mac-J/larpoux/.pub-cache/hosted/pub.dev/js-0.7.1/ diff --git a/flutter_sound_web/CHANGELOG.md b/flutter_sound_web/CHANGELOG.md index a803adfd9..09dca4185 100644 --- a/flutter_sound_web/CHANGELOG.md +++ b/flutter_sound_web/CHANGELOG.md @@ -1,4 +1,4 @@ -## 9.4.5 +## 9.4.6 - Please [look to this](https://flutter-sound.canardoux.xyz/changelog.html) diff --git a/flutter_sound_web/ios/flutter_sound_web.podspec b/flutter_sound_web/ios/flutter_sound_web.podspec index ccacfebff..50bb50b18 100644 --- a/flutter_sound_web/ios/flutter_sound_web.podspec +++ b/flutter_sound_web/ios/flutter_sound_web.podspec @@ -3,7 +3,7 @@ # Pod::Spec.new do |s| s.name = 'flutter_sound_web' - s.version = '9.4.5' + s.version = '9.4.6' s.summary = 'No-op implementation of flutter_sound_web web plugin to avoid build issues on iOS' s.description = <<-DESC temp fake flutter_sound_web plugin diff --git a/flutter_sound_web/pubspec.lock b/flutter_sound_web/pubspec.lock index 4e437b1ce..5cca2369d 100644 --- a/flutter_sound_web/pubspec.lock +++ b/flutter_sound_web/pubspec.lock @@ -58,10 +58,10 @@ packages: dependency: "direct main" description: name: flutter_sound_platform_interface - sha256: "759e41798a6eaa993bdac98c18764bfed3b7df2362c30fcee98f8b51f0e69eee" + sha256: "5c5d92b481562168c2d80269dd98c1bf38ee09e45990c77d33ee8a84f4cd4860" url: "https://pub.dev" source: hosted - version: "9.4.5" + version: "9.4.6" flutter_test: dependency: "direct dev" description: flutter diff --git a/flutter_sound_web/pubspec.yaml b/flutter_sound_web/pubspec.yaml index 87b3d4f80..afd3b6e2d 100644 --- a/flutter_sound_web/pubspec.yaml +++ b/flutter_sound_web/pubspec.yaml @@ -1,5 +1,5 @@ name: flutter_sound_web -version: 9.4.5 +version: 9.4.6 description: Flutter plugin that relates to sound like audio and recorder. #author: canardoux homepage: https://flutter-sound.canardoux.xyz/ @@ -28,7 +28,7 @@ flutter: dependencies: - flutter_sound_platform_interface: 9.4.5 + flutter_sound_platform_interface: 9.4.6 # path: ../flutter_sound_platform_interface # Flutter Sound Dir flutter: sdk: flutter