ryanheise

Results 1670 comments of ryanheise

Also suggestions from @Peng-Qian in #95 which I have folded into this issue. On the Android side, it seems to align with the usual S/O advice (and hence should probably...

Here is an implementation of the suggested solutions (completely untested): ```dart final _androidAudioManager = !kIsWeb && Platform.isAndroid ? AndroidAudioManager() : null; final _avAudioSession = !kIsWeb && Platform.isIOS ? AVAudioSession() :...

Are you saying that it is routing to the correct hardware route but just that the audio is partial? I'm not sure if there is anything I can do in...

I still don't understand what you mean since you didn't answer my question. But aside from that, I don't actually see there is anything I can do in audio_session to...

Also don't forget to await the call to `setMode()`: ```dart await setMode(...); await Future.delayed(Duration(seconds: 1)); // experiment as needed await playSound(); ```

This is the behaviour of the operating system. As suspected above, there isn't anything I can do to change the way the operating system works.

Ah yes, it looks so. A new PR would be welcome.

Oh you're right, that line is clearly a mistake. I will take a careful look tonight.

OK, so that line was intended to be moved down one line: ```dart final currentRoute = await _avAudioSession!.currentRoute; final previousRoute = _previousAVAudioSessionRoute ?? currentRoute; _previousAVAudioSessionRoute = currentRoute; ``` Can you...

Or easier, I have just pushed this commit to `master`. You can simply clone the latest code and see how it goes. If all is well, I'll publish the next...