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

Timestretching with 'sound = 2' bug #793

Open
renezuidhof opened this issue Dec 3, 2024 · 0 comments
Open

Timestretching with 'sound = 2' bug #793

renezuidhof opened this issue Dec 3, 2024 · 0 comments

Comments

@renezuidhof
Copy link

renezuidhof commented Dec 3, 2024

Superpowered version: 2.7.2

Describe the bug
When using the TimeStretching class with the parameter sound set to 2 I sometimes get audio that is almost completely silent. Only the first few milliseconds has audio, and sometimes somewhere in between a few milliseconds. This only happens when using the latest version (SuperPowered Version 2.7.2). When using sound = 1 or when using an older version (6e1d704) I didn't get the issue while doing some manual tests.

Steps to Reproduce
I'm not sure how to exactly replicate this using one of the example apps. As the issue only happens sometimes I made a screenrecording of my app, showcasing the issue. And I'll include the timestretching code (which is mainly based on the TimeStretching example app).

In the video I'm switching between two samples to load them.

Expected behavior
I'm using the TimeStretching class to stretch some audiosamples to match some tempo.

Actual behavior
This works quite well, though sometimes the result is mainly silence.

Device information
Please list which devices have this bug.

  • Device: Xioami Poco F2 Pro
  • OS: Android 12

I tried to replicate this on an emulator but I didn't get the issue there.

TimeStretching code: https://github.com/user-attachments/files/17994562/TimeStretching.Issue.txt

Video showcasing the issue: https://github.com/user-attachments/assets/4f0e201d-9054-410e-98b2-bcaa8789f8ba
You can see the generated waveform in the background. Timestamps of the bug: 0.11, 0.18 and 0.44.

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

No branches or pull requests

1 participant