retromp3 / retro

an ipod classic for iOS/Android, built with Flutter
https://retromusic.co
MIT License
317 stars 20 forks source link

Clickwheel audio feedback volume lowers if there's music playing #3

Open sakofchit opened 2 years ago

sakofchit commented 2 years ago

Known Flutter bug that appears to have gone unfixed.

When a user pans on the clickwheel, they should get both haptic and audio feedback. Audio feedback glitches if there's music playing. Also doesn't work if the device is on silent.

Was using this to handle clickwheel audio feedback as seen for example: https://github.com/retromp3/retro/blob/1f629667d1071d7e830d848bb772a5dc8d4d71c6/lib/ipod_menu_widget/ipod_menu_page_widget.dart#L174

Could maybe try a plugin like this?

fritzlb commented 1 year ago

Other apps and games manage to do this. Also, appearently not a flutter bug but the default behavior in iOS you cannot easily change in flutter. By writing a module for iOS by ourselves this is definitely solvable.

fritzlb commented 1 year ago

It looks like we have to tell iOS to use this: https://developer.apple.com/documentation/avfaudio/avaudiosession/category/1616560-ambient