-
Notifications
You must be signed in to change notification settings - Fork 11
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
Crackling popping #5
Comments
Oh, thanks for the report. Let's see: this shouldn't be a format problem, so you're right, it's either this library or oboe. There is one problematic spot in libgdx-oboe code base that I am aware of that can produce such crackling (and it's when you pause entire audio stream). So I hope that crackling was fixed in the upstream library and I just have to update it 😄 . I have to setup android environment on my pc again, it might take awhile, hopefully I will be able to work on this issue later this week. |
Can you try |
Unfortunately it didn't work 😞 But I've made a quick audio recording for my game with and without libgdx-oboe, maybe that helps identifying the issue... With libgdx-oboe (0.2.3): https://www.mboxdrive.com/with-oboe.mp3 Appreciate your time looking into this though! If you need any information that might help you, please let me know! |
Quick thought, a common reason for cracking sound in my experience was a buffer underrun (when there is not enough demuxed data to feed the oboe audio stream), which should be logged. So that would be great if you can show me catlog at the moment when you have such audio errors. But I doubt that, because crackling on the recording you've provided doesn't sound like a buffer underrun to me. Though, I'd be glad to be wrong here. |
Here is my full logcat output for both Oboe and default android backend (SoundPool). Logcat with Oboe: https://pastebin.com/jtPTHnmu |
Can you post |
I receive the game audio files from a friend who is also working with me on the game, so I am not sure if they share anything in common (e.g. frequency, software used.. etc). But here are the
Also, I've asked a friend to test my game with |
What Android are you running ? Because Oboe has different implementation based on the actual device API. Also, can you try to normalize sample rate of your audio files to 44100 Hz ? |
I'm running Android 9.0.11 (not rooted)
I've just normalized the files I sent before (and few more) to 44100 Hz, made sure that only these files are played during the game, but it did not make a difference. The crackling noise can still be heard with the frequency normalized. |
Alright, so the last thing worth trying is to test out oboe example apps to see if it's oboe or it's something within this library. I assume you have the tools to build them, if not, feel free to ask for apks ! |
First, I would like to thank you for creating this library! The setup was smooth and documentation is great.
However, I'm experiencing constant crackling popping / noise in my game after switching to oboe. This becomes very noticeable when a sound effect starts or ends with a fade in/out effect while having another sound running on a loop in the background. The issue is not very noticeable when playing one sound from absolute silence.
I'm using a mix of mp3 and wav sounds on a OnePlus 5T Android version 9.0.11
Unfortunately I can't point out the source of the issue... I'm not even sure if this is an issue related to this library or oboe. My only suggestion is to upgrade oboe to the latest version? I've seen similar issues on their repo and maybe its fixed 🤷♂️
google/oboe#286
google/oboe#564
The text was updated successfully, but these errors were encountered: