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

Sound artifacts on mobile phone #396

Open
SmokyOoOwizard opened this issue Jan 15, 2025 · 4 comments
Open

Sound artifacts on mobile phone #396

SmokyOoOwizard opened this issue Jan 15, 2025 · 4 comments

Comments

@SmokyOoOwizard
Copy link

System Information
Please provide the following information about your system:

  • Readmi 10A. RAM 2GB
  • Steam Audio version: 4.6.0
  • Unity version: 2022.3.19f1
  • FMOD Studio version: 2.02.25
  • Operating System and version:
  • Android 11
  • CPU architecture: armv8

Issue Description
For some reason, the sound is reproduced with artifacts.

I tried changing the following parameters:

  1. reduce the sampling frequency to 24 kHz using FMOD.
  2. use Vorbis encoding with 37% compression to reduce the load on RAM.
  3. use FADPCM encoding with a sampling frequency of 22 kHz.
  4. reduce all available parameters to values ​​that give a lower load, according to the documentation.
  5. change the DSP buffer size up and down.

There is also rarely a sound crash. The sound disappears until the application is restarted.

Sound is reproduced without artifacts on Xiaomi Mi 11 Lite

Example of sound artifacts:

IMG_6545.MOV

Example of sound without artifacts:

IMG_6546.MOV

Test project:
https://github.com/SmokyOoOwizard/UnitySteamAudioTest

@devil304
Copy link

devil304 commented Feb 4, 2025

What steam audio effects are you using on those sounds?
You have pretty heavy real-time settings and pretty low (5%) allowed CPU usage as for Redmi 10A.
Also 2GB of RAM in smartphone this years is pretty low, OS is probably taking around 1GB of that.

@SmokyOoOwizard
Copy link
Author

We use only spatialiser with these settings:
HRTF interpolation = nearest
distance attenuation = curve-driven
air absorption = user defined (via parameters)
apply HRTF to direct

Unfortunately, we cannot refuse support for devices with 2 GB ram.
We tried to use 100% cpu, but the effect is the same

@devil304
Copy link

devil304 commented Feb 5, 2025

In that case I can't help more

@lakulish
Copy link
Collaborator

lakulish commented Feb 6, 2025

@SmokyOoOwizard Can you provide more details on what the artifact sounds like? (Would you describe it as clicking, popping, static, or something else?) I'm unable to hear an artifact in the videos you provided, beyond the fact that the audio in the first video has more high frequency content.

Also, are you able to obtain any on-device logs that show what sampling rate is actually being used by FMOD? I wonder if FMOD is unable to configure 24 kHz output on that specific device, and something is going wrong as a result.

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

3 participants