Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Audio loss when pausing and resuming #184

Closed
John-Gee opened this issue May 6, 2024 · 9 comments
Closed

[BUG] Audio loss when pausing and resuming #184

John-Gee opened this issue May 6, 2024 · 9 comments
Labels
closing soon issue probably resolved but no follow up

Comments

@John-Gee
Copy link

John-Gee commented May 6, 2024

It seems whenever I turn off my buds and turn them back on I lose the ability to hear anything. I have to can the app and restart it to fix it. I haven't tried just stopping the current track though. This has happened with different buds/headsets and also nothing comes out of the speaker so it doesn't seen hardware related.

Expected Behavior

On pressing play the sound should be heard like in other players.

Current Behavior

No sound is heard.

Steps to Reproduce

  1. Listen to something
  2. Turn off BT headset
  3. Not sure if waiting is needed
  4. Turn back on headset and let it reconnect
  5. Press resume

Screenshots

Logs

logs_2.0.6_240409151.txt

Possible Solution

Edit: actually this just happened by pausing the audio but keeping the headset on and connected so no disconnection needed.

@MSOB7YY
Copy link
Member

MSOB7YY commented May 6, 2024

by checking the logs, it seems like a problem with A14/MIUI, make sure u downloaded the arm64 version not arm. i should also test more.
also does this happen with phone speakers/ wired headphones? or just Bluetooth earbuds?


for self: might be related to progaurd

release {
...
            // add this
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile(
                    'proguard-android-optimize.txt'),
                    'proguard-rules.pro'
        }
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.**  { *; }
-keep class io.flutter.util.**  { *; }
-keep class io.flutter.view.**  { *; }
-keep class io.flutter.**  { *; }
-keep class io.flutter.plugins.**  { *; }
-keep class androidx.lifecycle.DefaultLifecycleObserver

@John-Gee
Copy link
Author

John-Gee commented May 6, 2024

I believe I already used 64 but I reinstalled, no difference.
I've just tried with only the speakers and I didn't have the issue but maybe I didn't wait long enough, I'll retry later and reply.

Thank you!

@John-Gee
Copy link
Author

John-Gee commented May 7, 2024

OK I was able to have the same issue with just the speakers so it's not BT related.

@MSOB7YY
Copy link
Member

MSOB7YY commented May 7, 2024

@John-Gee i see, how much did u wait for tho? more than 5 minutes or less?

@John-Gee
Copy link
Author

John-Gee commented May 7, 2024

About 10 minutes I think between pausing and resuming.

Maybe I should play with the battery optimization stuff to see if it changes anything.

@John-Gee
Copy link
Author

John-Gee commented May 7, 2024

Putting the app in unrestricted battery mode didn't help here.

MSOB7YY added a commit that referenced this issue May 14, 2024
@MSOB7YY
Copy link
Member

MSOB7YY commented May 17, 2024

yo i tried reproducing on Android 14 Emulator but it just aint happening, paused for more than 10 minutes and with player in background and it still resumed normally. have u noticed a specific pattern? anyways i did what "might" be causing it, but can't test it. u can check beta build to see if its fixed

@MSOB7YY
Copy link
Member

MSOB7YY commented Aug 6, 2024

@John-Gee is this still an issue with v3.8.5 ?

@MSOB7YY MSOB7YY added the closing soon issue probably resolved but no follow up label Aug 31, 2024
@MSOB7YY
Copy link
Member

MSOB7YY commented Aug 31, 2024

im assuming its no longer an issue, should close soon.
for reference the latest beta is v4.0.8 https://github.com/namidaco/namida-snapshots/releases/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing soon issue probably resolved but no follow up
Projects
None yet
Development

No branches or pull requests

2 participants