flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[BUG]:Android: Recording pcm16WAV format

Open vongrad opened this issue 8 months ago • 26 comments

Flutter Sound Version : 9.28.0

  • FULL or LITE flavor ? FULL

  • Important: Result of the command : flutter pub deps | grep flutter_sound ├── flutter_sound 9.28.0 │ ├── flutter_sound_platform_interface... │ ├── flutter_sound_web... ├── flutter_sound_platform_interface 9.28.0 ├── flutter_sound_web 9.28.0 │ ├── flutter_sound_platform_interface...


Severity

✅ - Result is not what expected


Platforms you faced the error

✅ - Android ✅ - Real device

Describe the bug I am trying to record sound on physical Android device using Codec.pcm16WAV in the demo example (Simple Recorder) from flutter_sound, but when trying to play the audio, nothing is played. I checked the recorded file and it is only 44 bytes every time.

To Reproduce Steps to reproduce the behavior:

  1. Open Simple Recorder in flutter_sound demo example
  2. Change the _codec to Codec.pcm16WAV and _mPath to tau_file.wav
  3. Click on record button
  4. Say few words
  5. Click on stop button
  6. Click on play button and no sound will be played
  7. If you check the size of the file, it will always be 44 bytes

Logs!!!!

Performing hot restart... Syncing files to device CLT L29... Restarted application in 1,753ms. I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 new FlutterSoundPlayer (package:flutter_sound/public/flutter_sound_player.dart:199:13) I/flutter (21297): │ #1 new _SimpleRecorderState (package:example/simple_recorder/simple_recorder.dart:95:34) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ctor: FlutterSoundPlayer() I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 new FlutterSoundRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:231:13) I/flutter (21297): │ #1 new _SimpleRecorderState (package:example/simple_recorder/simple_recorder.dart:98:38) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ctor: FlutterSoundRecorder() I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer._openPlayer (package:flutter_sound/public/flutter_sound_player.dart:728:13) I/flutter (21297): │ #1 FlutterSoundPlayer.openPlayer. (package:flutter_sound/public/flutter_sound_player.dart:722:11) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> _openPlayer I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer._openPlayer (package:flutter_sound/public/flutter_sound_player.dart:741:15) I/flutter (21297): │ #1 FlutterSoundPlayer.openPlayer. (package:flutter_sound/public/flutter_sound_player.dart:722:11) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 Resetting flutter_sound Player Plugin I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── V/AudioManager(21297): querySoundEffectsEnabled... I/MediaPlayer(21297): [HSM] stayAwake false uid: 10150, pid: 21297 D/MediaPlayerNative(21297): Action:stop, CurrentState:MEDIA_PLAYER_STOPPED D/MediaPlayerNative(21297): Message: Unknown MediaEventType(8), ext1=0, ext2=0x0 V/PlayerBase(21297): baseStop() piid=799 I/MediaPlayer(21297): [HSM] stayAwake false uid: 10150, pid: 21297 D/MediaPlayerNative(21297): Action:reset_l, CurrentState:MEDIA_PLAYER_IDLE V/MediaPlayer(21297): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false V/MediaPlayer(21297): cleanDrmObj: mDrmObj=null mDrmSessionId=null V/PlayerBase(21297): baseRelease() piid=799 state=4 I/MediaPlayer(21297): [HSM] stayAwake false uid: 10150, pid: 21297 V/MediaPlayer(21297): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false V/MediaPlayer(21297): cleanDrmObj: mDrmObj=null mDrmSessionId=null I/MediaPlayerNative(21297): Pid:21297 MediaPlayer destructor MediaPlayer(0x734a9d5580) I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.openRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:477:13) I/flutter (21297): │ #1 _SimpleRecorderState.openTheRecorder (package:example/simple_recorder/simple_recorder.dart:108:23) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> openRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._openAudioSession (package:flutter_sound/public/flutter_sound_recorder.dart:486:13) I/flutter (21297): │ #1 FlutterSoundRecorder.openRecorder. (package:flutter_sound/public/flutter_sound_recorder.dart:479:11) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ---> _openAudioSession I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._openAudioSession (package:flutter_sound/public/flutter_sound_recorder.dart:510:17) I/flutter (21297): │ #1 FlutterSoundRecorder.openRecorder. (package:flutter_sound/public/flutter_sound_recorder.dart:479:11) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 Resetting flutter_sound Recorder Plugin I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.openRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:481:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- openAudioSession I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.openPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:282:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:84:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ---> openPlayerCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.openPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:297:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:84:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 <--- openPlayerCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer._openPlayer (package:flutter_sound/public/flutter_sound_player.dart:761:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- _openPlayer I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.openRecorderCompleted (package:flutter_sound/public/flutter_sound_recorder.dart:278:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:155:24) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ---> openRecorderCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.openRecorderCompleted (package:flutter_sound/public/flutter_sound_recorder.dart:289:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:155:24) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 <--- openRecorderCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._openAudioSession (package:flutter_sound/public/flutter_sound_recorder.dart:526:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 <--- _openAudioSession I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.startRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:757:13) I/flutter (21297): │ #1 _SimpleRecorderState.record (package:example/simple_recorder/simple_recorder.dart:125:10) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> startRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:947:13) I/flutter (21297): │ #1 FlutterSoundRecorder.startRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:782:11) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> stopRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:957:13) I/flutter (21297): │ #1 FlutterSoundRecorder.stopRecorder. (package:flutter_sound/public/flutter_sound_recorder.dart:950:17) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> _stopRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._stop (package:flutter_sound/public/flutter_sound_recorder.dart:903:13) I/flutter (21297): │ #1 FlutterSoundRecorder._stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:969:17) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> _stop I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── V/AudioManager(21297): querySoundEffectsEnabled... I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.stopRecorderCompleted (package:flutter_sound/public/flutter_sound_recorder.dart:344:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:135:24) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ---> stopRecorderCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.stopRecorderCompleted (package:flutter_sound/public/flutter_sound_recorder.dart:356:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:135:24) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 <---- stopRecorderCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._stop (package:flutter_sound/public/flutter_sound_recorder.dart:918:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- _stop I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:973:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- _stopRecorder : I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:952:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- stopRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.getSampleRate (package:flutter_sound/public/flutter_sound_recorder.dart:985:13) I/flutter (21297): │ #1 FlutterSoundRecorder.startRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:784:26) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> getSampleRate I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._getSampleRate (package:flutter_sound/public/flutter_sound_recorder.dart:995:13) I/flutter (21297): │ #1 FlutterSoundRecorder.getSampleRate. (package:flutter_sound/public/flutter_sound_recorder.dart:988:11) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> pauseRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.getSampleRate (package:flutter_sound/public/flutter_sound_recorder.dart:990:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- getSampleRate I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._startRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:824:13) I/flutter (21297): │ #1 FlutterSoundRecorder.startRecorder. (package:flutter_sound/public/flutter_sound_recorder.dart:791:13) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> _startRecorder. I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/AudioRecord(21297): [isBtA2dpRecordAllowed]allowed = true I/AudioRecord(21297): sendPackageName() 'VOIP_PKGNAME=xyz.canardoux.fluttersound.example' I/AudioRecord(21297): [isBtScoRecordAllowed]allowed = true I/AudioRecord(21297): [setBlueToothScoState]cur app is not in whilelist I/HwAudioRecordImpl(21297): sendStateChangedIntent, state=3 I/System.out(21297): ---> writeAudioDataToFile I/System.out(21297): <--- writeAudioDataToFile I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.startRecorderCompleted (package:flutter_sound/public/flutter_sound_recorder.dart:328:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:129:24) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ---> startRecorderCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.startRecorderCompleted (package:flutter_sound/public/flutter_sound_recorder.dart:337:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:129:24) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 <--- startRecorderCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._startRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:898:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- _startRecorder. I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.startRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:806:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- startRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:947:13) I/flutter (21297): │ #1 _SimpleRecorderState.stopRecorder (package:example/simple_recorder/simple_recorder.dart:137:23) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> stopRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:957:13) I/flutter (21297): │ #1 FlutterSoundRecorder.stopRecorder. (package:flutter_sound/public/flutter_sound_recorder.dart:950:17) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> _stopRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._stop (package:flutter_sound/public/flutter_sound_recorder.dart:903:13) I/flutter (21297): │ #1 FlutterSoundRecorder._stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:969:17) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> _stop I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── V/AudioManager(21297): querySoundEffectsEnabled... I/AudioRecord(21297): [isBtScoRecordAllowed]allowed = true I/AudioRecord(21297): [setBlueToothScoState]cur app is not in whilelist I/HwAudioRecordImpl(21297): sendStateChangedIntent, state=1 I/HwAudioRecordImpl(21297): sendStateChangedIntent, state=1 I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.stopRecorderCompleted (package:flutter_sound/public/flutter_sound_recorder.dart:344:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:135:24) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ---> stopRecorderCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.stopRecorderCompleted (package:flutter_sound/public/flutter_sound_recorder.dart:356:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundRecorder.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_recorder.dart:135:24) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 <---- stopRecorderCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._stop (package:flutter_sound/public/flutter_sound_recorder.dart:918:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- _stop I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder._stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:973:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- _stopRecorder : /data/user/0/xyz.canardoux.fluttersound.example/cache/tau_file.wav I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundRecorder.stopRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:952:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- stopRecorder I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): File size (for debugging): 44 I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer._startPlayer (package:flutter_sound/public/flutter_sound_player.dart:1039:13) I/flutter (21297): │ #1 FlutterSoundPlayer.startPlayer. (package:flutter_sound/public/flutter_sound_player.dart:1019:17) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> startPlayer I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer._stop (package:flutter_sound/public/flutter_sound_player.dart:1772:13) I/flutter (21297): │ #1 FlutterSoundPlayer._startPlayer (package:flutter_sound/public/flutter_sound_player.dart:1074:11) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> _stop I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── V/AudioManager(21297): querySoundEffectsEnabled... I/Choreographer(21297): Skipped 476 frames! The application may be doing too much work on its main thread. I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.stopPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:361:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:98:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ---> stopPlayerCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.stopPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:376:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:98:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 <--- stopPlayerCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer._stop (package:flutter_sound/public/flutter_sound_player.dart:1836:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- _stop I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer._startPlayer (package:flutter_sound/public/flutter_sound_player.dart:1117:13) I/flutter (21297): │ #1 I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- startPlayer I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── D/MediaPlayerNative(21297): Message: MEDIA_PREPARED(1), ext1=0, ext2=0x0 I/MediaPlayer(21297): SetSubtitleAnchorThread start I/MediaPlayer(21297): getSubtitleLooper I/MediaPlayer(21297): SetSubtitleAnchorThread quit begins I/MediaPlayer(21297): SetSubtitleAnchorThread quit ends I/MediaPlayer(21297): setSubtitleAnchor end D/PlayerBase(21297): baseStart() piid=815 I/MediaPlayer(21297): [HSM] stayAwake true uid: 10150, pid: 21297 W/MediaPlayerNative(21297): Action:start, CurrentState:MEDIA_PLAYER_STARTED I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.log (package:flutter_sound/public/flutter_sound_player.dart:419:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:118:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 [android]: mediaPlayer prepared and started I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.startPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:342:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:91:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 ---> startPlayerCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.startPlayerCompleted (package:flutter_sound/public/flutter_sound_player.dart:354:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:91:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 <--- startPlayerCompleted: true I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── D/MediaPlayerNative(21297): Message: Unknown MediaEventType(6), ext1=0, ext2=0x0 D/MediaPlayerNative(21297): Message: MEDIA_PLAYBACK_COMPLETE(2), ext1=0, ext2=0x0 E/MediaPlayerNative(21297): internal/external state mismatch corrected,mAudioTearDown = 0 V/PlayerBase(21297): baseStop() piid=815 I/MediaPlayer(21297): [HSM] stayAwake false uid: 10150, pid: 21297 I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.log (package:flutter_sound/public/flutter_sound_player.dart:419:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:118:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 [android]: Playback completed. I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.audioPlayerFinished (package:flutter_sound/public/flutter_sound_player.dart:257:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:72:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:---> audioPlayerFinished I/flutter (21297): └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── I/flutter (21297): │ #0 FlutterSoundPlayer.audioPlayerFinished (package:flutter_sound/public/flutter_sound_player.dart:275:13) I/flutter (21297): │ #1 MethodChannelFlutterSoundPlayer.channelMethodCallHandler. (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:72:21) I/flutter (21297): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ I/flutter (21297): │ 🐛 FS:<--- audioPlayerFinished I/flutter (21297): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────


vongrad avatar May 04 '25 09:05 vongrad

Some problem

joaotolovikeepers avatar May 04 '25 16:05 joaotolovikeepers

Same here!

TomasVojta avatar May 06 '25 17:05 TomasVojta

Same Problem, currently I have switched to aacMP4

dhiraj-shipmnts avatar May 07 '25 07:05 dhiraj-shipmnts

Sorry for the bug. I am working to fix that today.

Larpoux avatar May 07 '25 08:05 Larpoux

taudio 10.3.1 is released. The bug on Android when recording PCM16WAV is fixed. It is really simple to upgrade from Flutter Sound 9.x. Just 5 minutes. Here is a small note

10.3.1

  • Android : Remove dummy code when recording PCM16WAV ( fs #1187 )

Larpoux avatar May 07 '25 16:05 Larpoux

Is taudio production ready since you wrote in your docs that its in development state? If not, is there going to be a patch for flutter_sound fixing PCM16WAV?

vongrad avatar May 07 '25 16:05 vongrad

@vongrad : Yes, Taudio is ready for production (with the Flutter Sound compatibility API). I must fix the doc.

Larpoux avatar May 07 '25 16:05 Larpoux

Did you actually also publish flutter_sound_core 10.3.1? I am getting some errors when resolving that dependency.

vongrad avatar May 07 '25 17:05 vongrad

Yes I did. I should work. I did a release build to check that everything OK. Perhaps retry in 10 minutes ...

Larpoux avatar May 07 '25 17:05 Larpoux

The flutter_sound_core 10.3.1 dependency gets resolved now. There is just one little issue, the audio file recorded with Android does not start with RIFF id the same as it did in the previous version. The iOS still contains the correct header: b'RIFF\x16\xa6\x00\x00WAVEJUNK'.

Is there any chance we could keep them the same since some libraries have hard times loading the wav files without the b'RIFF...'?

vongrad avatar May 07 '25 17:05 vongrad

I am going to look to this issue tomorrow. (I removed some dummy code that I had not understood the reason, but perhaps this code was not really dummy). I will give some informations on this issue tomorrow

Larpoux avatar May 07 '25 17:05 Larpoux

Thank you!

vongrad avatar May 07 '25 17:05 vongrad

The Wave header built by Android is incorrect. But I don’t want to restore the old code because it was ugly and was a problem for the maintenance. Right now I don’t know a good solution. I must think about it longer.

Larpoux avatar May 08 '25 16:05 Larpoux

Maybe restoring the old code could be just a temporary solution so people can record the sound on Android in PCM16WAV with correct header?

vongrad avatar May 08 '25 16:05 vongrad

The Wave header built by Android is incorrect. But I don’t want to restore the old code because it was ugly and was a problem for the maintenance. Right now I don’t know a good solution. I must think about it longer.

@Larpoux I see the problem was the data is not write to the output stream is'nt it? i see the old code and the first time it write to the file but then nothing write to the file

cuong292 avatar May 08 '25 16:05 cuong292

Yes @cuong292, the code was broken when I implemented the support for Float32 wav. My fix of yesterday was not good. We really need to record Raw Float32 or Raw Int16 and build a correct wav header. No other choice because android media player is unable to record wav files itself.

Yes @vongrad , I will restore the old code and will debug it. No other good option. I am going to work on this next days. This is actually my priority.

Larpoux avatar May 08 '25 17:05 Larpoux

Really appreciate it!

vongrad avatar May 08 '25 19:05 vongrad

Taudio 10.3.2 is released with the old code debugged. (Yes @cuong292, you was right : the instruction to write the audio data to the file was unintentionally deleted). Sorry for this stupid regression. I hope that this time everything is good. Of course, tell me if anything bad.

Note: PCMFloat32WAV is not yet supported. This should not be very difficult to support it, if necessary, but I think that WAV files are almost always PCM INT16. Tell me if I am wrong.

10.3.2

  • Android recorder: fixes a stupid regression when writing PCM16WAV data to the file ( fs #1187 )

Larpoux avatar May 09 '25 05:05 Larpoux

Taudio 10.3.2 is released with the old code debugged. (Yes @cuong292, you was right : the instruction to write the audio data to the file was unintentionally deleted). Sorry for this stupid regression. I hope that this time everything is good. Of course, tell me if anything bad.

Note: PCMFloat32WAV is not yet supported. This should not be very difficult to support it, if necessary, but I think that WAV files are almost always PCM INT16. Tell me if I am wrong.

10.3.2

  • Android recorder: fixes a stupid regression when writing PCM16WAV data to the file ( fs #1187 )

@Larpoux Thank you bro! Appreciate your reply and very quick check. I really needed that! hope you push that to new version of it then!

cuong292 avatar May 09 '25 07:05 cuong292

It is working correctly now. Thank you for all your work!

vongrad avatar May 10 '25 06:05 vongrad

Hi, I hope things are well. sorry to bother, I'd like to know if there will be a back port, The library was used in an old project I'm busy resurrecting, unfortunately I don't know if we'd be able accept the license changes for the latest version.

frits-metalogix avatar May 10 '25 14:05 frits-metalogix

@frits-metalogix ,

I understand that the question of the licensing is a problem for several flutter sound users. Some users can’t or don’t want to be GPL compliant. This is completely understandable.

Taudio is (will be) dependent on Etau which is (will be) GPL. This is one of the reasons for switching to GPL. But I want (really hope) that Flutter Sound 9.x continue to be maintained with a MPL license.

My big issue is that I don’t work enough on 10.0, and Taudio is not going well. I really don’t have enough energy to work at the same time on 9.x and 10.x

We desperately need another maintainer for doing the 9.x maintenance. I will help him/her to do his/her job.

Larpoux avatar May 16 '25 12:05 Larpoux

Thanks for the feedback! completely understandable :)

frits-metalogix avatar May 20 '25 02:05 frits-metalogix

这个问题解决了吗,为什么我更新到最新版本,还是有这个问题

JakeGi avatar May 21 '25 01:05 JakeGi

@JakeGi : The last version is 10.3.2

taudio 10.3.1 is released. The bug on Android when recording PCM16WAV is fixed. It is really simple to upgrade from Flutter Sound 9.x. Just 5 minutes. Here is a small note

Larpoux avatar May 22 '25 09:05 Larpoux

taudio 10.3.1 is released. The bug on Android when recording PCM16WAV is fixed. It is really simple to upgrade from Flutter Sound 9.x. Just 5 minutes. Here is a small note

10.3.1

  • Android : Remove dummy code when recording PCM16WAV ( fs #1187 )

Its a GPL license and not everyone want their code to publish.

haroonkhan335 avatar Aug 22 '25 15:08 haroonkhan335