Skip to content

Commit

Permalink
TAU : Version 9.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Larpoux committed Mar 8, 2024
1 parent 72fc894 commit 3923f80
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 47 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:

Expand Down
5 changes: 4 additions & 1 deletion doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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<void>
Expand Down
2 changes: 1 addition & 1 deletion doc/_data/sidebars/mydoc_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
entries:
- title: sidebar
product: Flutter Sound
version: 9.4.5
version: 9.4.6
folders:

- title:
Expand Down
2 changes: 1 addition & 1 deletion flutter_sound/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 9.4.5
## 9.4.6

- ## The [CHANGELOG file is here](https://flutter-sound.canardoux.xyz/changelog.html)

4 changes: 2 additions & 2 deletions flutter_sound/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

group 'xyz.canardoux.fluttersound'
version '9.4.5'
version '9.4.6'

buildscript {
repositories {
Expand Down Expand Up @@ -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'
// -------------------------------------------------------------------------------------

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class LivePlaybackWithoutBackPressure extends StatefulWidget {

class _LivePlaybackWithoutBackPressureState
extends State<LivePlaybackWithoutBackPressure> {
FlutterSoundPlayer _mPlayer = FlutterSoundPlayer();
final FlutterSoundPlayer _mPlayer = FlutterSoundPlayer();
bool _mPlayerIsInited = false;
double _mSpeed = 100.0;

Expand All @@ -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;
});
Expand All @@ -82,7 +82,7 @@ class _LivePlaybackWithoutBackPressureState
@override
void dispose() {
stopPlayer();
_mPlayer!.closePlayer();
_mPlayer.closePlayer();
super.dispose();
}

Expand All @@ -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,
Expand All @@ -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 ?) -------------------
Expand All @@ -127,9 +127,9 @@ class _LivePlaybackWithoutBackPressureState
}

Future<void> stopPlayer() async {
if (_mPlayer != null) {
await _mPlayer!.stopPlayer();
}
//if (_mPlayer != null) {
await _mPlayer.stopPlayer();
//}
}


Expand All @@ -148,7 +148,7 @@ class _LivePlaybackWithoutBackPressureState
if (!_mPlayerIsInited) {
return null;
}
return _mPlayer!.isStopped
return _mPlayer.isStopped
? play
: () {
stopPlayer().then((value) => setState(() {}));
Expand Down Expand Up @@ -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'),
]),
Expand Down
10 changes: 5 additions & 5 deletions flutter_sound/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions flutter_sound/ios/flutter_sound.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
6 changes: 3 additions & 3 deletions flutter_sound/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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<[email protected]>
homepage: https://flutter-sound.canardoux.xyz/readme.html
Expand All @@ -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
# ============================================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion flutter_sound_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 9.4.5
## 9.4.6

- Please [look to this](https://flutter-sound.canardoux.xyz/changelog.html)

2 changes: 1 addition & 1 deletion flutter_sound_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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<[email protected]>
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
Expand Down
4 changes: 2 additions & 2 deletions flutter_sound_web/.dart_tool/package_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
}
4 changes: 2 additions & 2 deletions flutter_sound_web/.dart_tool/package_config_subset
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion flutter_sound_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 9.4.5
## 9.4.6

- Please [look to this](https://flutter-sound.canardoux.xyz/changelog.html)

2 changes: 1 addition & 1 deletion flutter_sound_web/ios/flutter_sound_web.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions flutter_sound_web/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions flutter_sound_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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<[email protected]>
homepage: https://flutter-sound.canardoux.xyz/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3923f80

Please sign in to comment.