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

Brown noise has a slight repetitive lowering of volume #604

Closed
ghost opened this issue Apr 25, 2021 · 10 comments
Closed

Brown noise has a slight repetitive lowering of volume #604

ghost opened this issue Apr 25, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Apr 25, 2021

Description

The brown noise keeps lowering the volume in a very repetitive way, the volume is not constant.

To Reproduce

  1. Play (only) Brown noise with a loud volume or in a very silent room.

Others

  • Device: Galaxy A50
  • Android Version: 11
  • App Version: 0.16.0 F-Droid
@ghost ghost added the bug Something isn't working label Apr 25, 2021
@ashutoshgngwr ashutoshgngwr added always-fresh Issues that will never become stale priority/medium labels Jun 3, 2021
@ashutoshgngwr
Copy link
Member

I'd ask if this is still an issue in v2, but I suppose that's impossible. If someone is watching this issue and feels that it is unresolved in v2, please open a new issue.

@ErichDonGubler
Copy link

ErichDonGubler commented Aug 4, 2022

There's definitely still volume inconsistency for brown, pink, and white noise in v2, but for a different reason (I think?). I'm hearing a regular volume dip that happens every 5 seconds on my S22 Ultra, which wasn't present in v1 It's very jarring. :(

@ashutoshgngwr ashutoshgngwr reopened this Aug 4, 2022
@ashutoshgngwr
Copy link
Member

@ErichDonGubler thanks for reporting this. I'll fix it ASAP.

@ashutoshgngwr
Copy link
Member

ashutoshgngwr commented Aug 4, 2022

@ErichDonGubler I cannot reproduce this on my device (Mi A3 on Android 11). I think this might be related to an upstream bug, but AFAIK, it affects only a few devices running on Android 10 (see #344).

A little background: Noice takes independent sound segments (MP3 files) and stitches them together on the fly using the gapless playback feature of a library. The gapless playback wouldn't work on some devices due to #344. If it affects your device, you should hear the volume dip on every sound. Can you please confirm it? The fan sound is the ideal sample to test it (other than raw noise).

@ErichDonGubler
Copy link

ErichDonGubler commented Aug 4, 2022

@ashutoshgngwr: I can confirm hearing a click (e.g., hard cut, no fade) between each sample of the fan sound cycle. The cycle appears to indefinitely repeat a longer sample (~25s) and a shorter sample (~5s).

@ashutoshgngwr
Copy link
Member

@ErichDonGubler That's rather bad news. It is a bizzar issue with no (sane) fix. As far as I understood from google/ExoPlayer#8594 and google/ExoPlayer#7994, it has something to do with media decoders present on the device.

I also faced it on my device (running on Android 10 at the time). But it was automatically resolved when my device received the Android 11 update. I'll spend some more time researching, but it is very unlikely to get fixed.

@ashutoshgngwr
Copy link
Member

@ErichDonGubler This issue was introduced in ExoPlayer version > 2.11.8. I'll start publishing alternate APKs on GitHub releases with the downgraded ExoPlayer as a workaround.

@ashutoshgngwr
Copy link
Member

@ErichDonGubler Publishing the alternate build doesn't seem feasible. I was under the impression that ExoPlayer followed semantic versioning, but there seem to have been drastic API changes since 2.11.8. I tried to tweak the code after adding the old dependency, but there are too many breaking changes. I'll have to maintain two separate implementations of Noice's sound engine instead of doing a simple find, replace and build. I apologise, but I don't have any resources to commit for a fix that will need active maintenance on this scale.

I also tried ExoPlayer's FFMPEG decoder extension, but it broke the gapless playback entirely.

I recommend you to keep using v1 (latest release v1.3.3) if that works for you. :)

@ashutoshgngwr ashutoshgngwr closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2022
@ashutoshgngwr ashutoshgngwr added wontfix This will not be worked on and removed always-fresh Issues that will never become stale priority/medium labels Aug 9, 2022
@ashutoshgngwr
Copy link
Member

Hey @ErichDonGubler! The upstream issue that caused this bug was just resolved (google/ExoPlayer#8594). I tested their resolution with Noice, and it seems to be working as expected.

I'll be creating a new release for Noice soon.

@ashutoshgngwr ashutoshgngwr removed the wontfix This will not be worked on label Mar 23, 2023
@ashutoshgngwr
Copy link
Member

Hey @ErichDonGubler, the new release is available on Google Play and GitHub. Please let me know if it is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants