Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] audio noise and sample rate
01-28-2015, 02:45 PM (This post was last modified: 01-31-2015 02:11 PM by starlord0502.)
Post: #1
[solved] audio noise and sample rate
My device is Asus Memo pad 8 ME181c.
OS: Android 4.4.2
CPU: Intel Atom Z3745

I found some noise appeared in background music of games since revision v0.9.9.1-1472-g82ccce9.
The last non-noise revision is v0.9.9.1-1462-g1b055fd.

At the same time, I noticed that the audio information under developer tools/system information/device info is different.

In revision v0.9.9.1-1462-g1b055fd, audio information of my device is as below:
sample rate 44100hz
frames per buffer 1152
optimal sample rate 48000hz
optimal frames per buffer 1152

In revision v0.9.9.1-1472-g82ccce9 and later (the last one I tried is v0.9.9.1-1611-ge0377db), audio information of my device is as below:
sample rate 48000hz
frames per buffer 1152
optimal sample rate 48000hz
optimal frames per buffer 1152

Maybe the noise is due to sample rate ???
How can I change the sample rate to try ?
Find all posts by this user
Quote this message in a reply
01-29-2015, 08:00 PM
Post: #2
RE: audio noise and sample rate
Try the very newest version, I added a tweak that caps the frames per buffer at 1024, which seems to avoid some issues on my Zenfone which has the same buffer size. Audio isn't superbly consistent, but at least no such noise anymore. It's a shame these Intel devices have such a badly optimized audio path, Nexuses and similar are way better.
Find all posts by this user
Quote this message in a reply
01-30-2015, 06:39 AM
Post: #3
RE: audio noise and sample rate
Dear Henrik:

Thanks for your reply.

I tried the latest revision v0.9.9.1-1626-g7d16a4a.
As you mentioned, the audio information becomes as below:
sample rate 48000hz
frames per buffer 1024
optimal sample rate 48000hz
optimal frames per buffer 1152

But it's a pity that noise still exists.
If you have another suggestion, I'll be glad to try.
Find all posts by this user
Quote this message in a reply
01-30-2015, 07:29 AM
Post: #4
RE: audio noise and sample rate
Thanks for reporting! I have one more idea to try, but no time today. I'll make a new build tomorrow.

Audio on Android is so annoying, I put in hard work that makes audio work better and faster on my devices and it still breaks on others.. gah
Find all posts by this user
Quote this message in a reply
01-31-2015, 02:08 PM
Post: #5
RE: audio noise and sample rate
Dear Henrik:

I've tried the latest revision v0.9.9.1-1632-g39bbc00.

The audio information becomes as below:
sample rate 44100hz
frames per buffer 512
optimal sample rate 48000hz
optimal frames per buffer 1152

The noise becomes much better, very hardly to appear.

I noticed that you add option "audio sync(using resampling)".
The previous result is set at turning on audio sync.
I tried to turn off it, and the result is perfect.
Noise disappears !!!

Thank you very much for your effort.
Find all posts by this user
Quote this message in a reply
01-31-2015, 02:57 PM
Post: #6
RE: [solved] audio noise and sample rate
Great, thank you for reporting!

I will try to figure out where the noise came from later, but for now, this should be good enough for 1.0.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: