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

Audio cuts and jumps on Mobile #39

Closed
DannyAcosta710 opened this issue Nov 16, 2016 · 23 comments
Closed

Audio cuts and jumps on Mobile #39

DannyAcosta710 opened this issue Nov 16, 2016 · 23 comments

Comments

@DannyAcosta710
Copy link

DannyAcosta710 commented Nov 16, 2016

(Optimization?) Lumia 735, experiencing audio cuts and sometimes quick jumps, frequently. The phone doesn't have many apps opened, no more than normal.

Happens both with the app on screen (happens just as much) and background

@thecodrr
Copy link
Owner

thecodrr commented Nov 16, 2016

How many songs did you load into the library?
Did you open the album view by chance?
What's the size of the song you loaded i.e. duration and file size?
Does it occur on Groove and any other player?

@DannyAcosta710
Copy link
Author

DannyAcosta710 commented Nov 16, 2016

How many songs: Around 607
Did I open album view?: Yes, but even when I "cold started" the app and only opened the library, it happens
Size of song: Happens on most/all songs. But one example is a 3:06, 7.22 MiB MP3 file
Does it occur on other players? Nope, not on Groove, not on foobar2000

@thecodrr
Copy link
Owner

This can be a memory management problem or maybe CPU? I will look into this.

@thecodrr
Copy link
Owner

thecodrr commented Nov 16, 2016

Or perhaps there is some stream parsing problem. Can you send one file on which it was occurring for testing?

Edit: Is it occurring on PC?

@DannyAcosta710
Copy link
Author

I don't think it's the audio file, because PC bread player can play it with no issue

Here's the original file (hosted on OneDrive not here bc copyright maybe)

Here's that file played on Bread Player on Mobile
Here's that file played on Groove on Mobile
(don't mind the peaks, that's just because of the crappy cable I used)
And another thing, it doesn't happen as much when connected to "headphones"

@MightyK1337
Copy link

It happens for a lot of songs not just a particular one and even on headphones, at least for me.

@thecodrr
Copy link
Owner

thecodrr commented Nov 18, 2016

@DannyTalent @MightyK1337 As it doesn't happen in the emulator, I have uploaded a test package
with some changes for you guys to check out if this occurs again.

Here's the direct link (Mobile Only): Alpha-1.6.1-test

Basically, I removed SMTC as I suspect that is what's causing the issue. I could be wrong though.

@DannyAcosta710
Copy link
Author

True. I could reproduce it on the last alpha, but not on the new one
Also the bug reported by @MightyK1337 at #21 seems fixed

Side note: The first time I tried to play a song, the app crashed

@thecodrr
Copy link
Owner

As I suspected! I will try a few things to fix this without removing SMTC.

@thecodrr
Copy link
Owner

@DannyTalent Please test this one out: Alpha-1.6.1-test-2

Side note: You may experience cuts and jumps in the background. Aside from that, SMTC will now be working flawlessly (I hope).

@thecodrr
Copy link
Owner

thecodrr commented Nov 19, 2016

@DannyTalent How's the new alpha-test working?

@DannyAcosta710
Copy link
Author

DannyAcosta710 commented Nov 19, 2016

Crap, I forgot to check this issue, and my email, sorry!
Good to see some animations now! (or maybe I just noticed it now?)
SMTC works alright. Background audio stops itself when I "minimize" the app (eg. navigate to another app or press the Windows button) but can be played again manually, jumps and cuts are waaaaaaay less than before, but certainly still (rarely) present.

EDIT: There's still the issue where closing the app also stops music playback

@thecodrr
Copy link
Owner

Oh yes, I fixed that issue.

About the cuts and jumps, I am glad that it occurs way less now but it still does so I will have to tweak some other things as well.

I have a question: In which state does it occur more? Background or foreground?

@DannyAcosta710
Copy link
Author

Definitely on the background. Playing a game (candy crush soda so it's ported, and a bit resource intensive) I noticed it happening, as well as while browsing on Edge.
Audio cuts only, tho... I've noticed they happen waaay less but are longer now (less than a second, but longer than before)

@thecodrr thecodrr added this to the Alpha milestone Nov 25, 2016
@thecodrr
Copy link
Owner

@DannyTalent Is this still present in 1.7-alpha?

@DannyAcosta710
Copy link
Author

It does happen, not much, but it's quite inconsistent... Sometimes it will work with a few jumps for several minutes and sometimes the audio just gets fubar... But it's only happened to me once, when the phone was quite hot

@thecodrr
Copy link
Owner

thecodrr commented Dec 1, 2016

@DannyTalent I reproduced this on the emulator and it happens regardless of the SMTC. I think this issue is caused by high resource usage or low memory limit. Though, I wasn't able to get any message regarding low memory limit reached etc.

I think, on the background the app is given less memory and cpu because of which the audio stream buffering is slow, and audio cuts and jumps.

I will consult this with BASS devs, maybe they have something...

@DannyAcosta710
Copy link
Author

I think there's a task manager-esque app that shows you, though it needs some special access.. I'll report anything I can if I do find it

@thecodrr
Copy link
Owner

thecodrr commented Dec 1, 2016

@DannyTalent I did some of my own testing and it seems I am right. The OS puts a CPU limit on the player or maybe the BASS does that itself. Anyways, I saw > 2% usage of BASS on the foreground while on the background it was < 1%. So I am now sure where the problem is.

@thecodrr
Copy link
Owner

thecodrr commented Dec 3, 2016

@DannyTalent Please give this one a try again in the latest alpha. I am hoping this is fixed now...

@DannyAcosta710
Copy link
Author

Yep, mostly fixed. I did notice a small cut during a game's loading screen, so it may be a read speed issue?? I wouldn't know, but during the game it didn't happen again

@thecodrr
Copy link
Owner

thecodrr commented Dec 3, 2016

Can you give it a stress test? Like try loading heavy websites while song plays in background. Play some game (The ported Candy Crush 😉 ). I need to know if the config we have now will remain good under stressful conditions.

@DannyAcosta710
Copy link
Author

I tried the digrace of an app that they call Facebook Messenger, and didn't have any problems, again, a single jump while loading, but never again. I did however, found a bug I'll post about in a sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants