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

fixed bug which prevented granule position to be set for longer audio files #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mozzbozz
Copy link

@mozzbozz mozzbozz commented Apr 2, 2019

I think the bug was introduced in commit edc9273.

Basically, the contributor just forgot to reset the doneFlush-flag to false again after a flush was done. That resulted in pageSize being reset to 0 after every packet (after the first flush; which was at around 2 seconds for me). Therefore the granule position was only calculated correctly for the first page. After that it stayed fixed to one value and coursed audio players to freak out and display a wrong length for the file...

Also I fixed a small spelling mistake in one of the source code comments. Additionally, my editor automatically stripped trailing spaces in some lines (of course I could've deactivated that feature but I think it makes sense).

… files; spelling mistake in comment; and editor stripped trailing spaces...
@sebma
Copy link

sebma commented Nov 1, 2021

@mozzbozz Congratulation for this PR. I'm in wait for this PR to be merged.
It's been a little more than 2 years now and this PR is still not merged and last commit was done last year, has Gagravarr abandoned this project ?

This issue is related to the bug fixed by this PR : https://gitlab.com/axet/android-audio-recorder/-/issues/208

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

Successfully merging this pull request may close these issues.

2 participants