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

iOS - on older devices, FMOD audio stutters when resource load is high and video is opened #1969

Closed
reuben-originatorkids opened this issue Aug 15, 2024 · 5 comments
Labels
iOS iOS platform

Comments

@reuben-originatorkids
Copy link

Describe the issue
Our team has been using AVPro 2.9.* for a large amount of video content in our app. Recently, we have noticed that in certain situations, on somewhat older iOS devices (iPad 8 and lower), when playing multiple sounds (music, ambient, sfx, etc.) in FMOD and opening a video with AVPro at the same time, the audio will cut out or stutter. The weird thing is that this doesn't seem to happen on similarly low-resourced Android devices. Perhaps this is a quirk of the platform but we were wondering if others have seen similar interactions before. Thank you in advance for your help looking into this! Please let me know how I can assist with the process.

Your Setup (please complete the following information):

  • Unity version: 2022.3.14f1
  • AVPro Video version (number and edition (trial/core/ultra/enterprise)): 2.9.3 core
  • Operating system version: iPadOS 16.7.1
  • Device model: iPad 6th Gen
  • Video specs (resolution, frame-rate, codec, file size): 1280x720, 30fps, H.264, 3.1MB (for example)

To Reproduce
Occurs when multiple FMOD sounds are playing and then a video is opened with AVPro.

Videos
https://github.com/user-attachments/assets/9dd5eeeb-27ac-4b9f-9517-91febee3580c

@Chris-RH
Copy link
Contributor

Chris-RH commented Aug 16, 2024

Please note that AVPro Video version 2 has been depreciated and will no longer be receiving any fixes or updates. Are you able to retest using a trial version of AVPro Video 3?

Are you using Unity audio or System Direct?
How many audio sources are being played at the same time?
Are you able to provide any error logging?

It sounds like there aren't enough system resources to process all the audio.

@Chris-RH Chris-RH added the iOS iOS platform label Aug 16, 2024
@reuben-originatorkids
Copy link
Author

Thanks for your response! Yes, I will retest with a trial version of AVPro Video 3. We're using System Direct audio. There are approximately 5 audio sources playing at the time of stuttering. We're not receiving any errors but I will continue profiling and share any relevant findings.

@reuben-originatorkids
Copy link
Author

I retested on 3.0.8 and got the same result. Video below.
https://github.com/user-attachments/assets/ea33b284-baa5-4051-b6f4-60198b44b272

I also tried changing to Unity audio rather than System Direct and that didn't seem to help things, either. I guess our next step is just to reduce system resource draw.

@Chris-RH Chris-RH changed the title iOS - FMOD audio stutters when resource load is high and video is opened iOS - on older devices, FMOD audio stutters when resource load is high and video is opened Aug 20, 2024
@MorrisRH
Copy link

If the video's audio needs to be resampled to match the sample rate set by Unity then that will put a strain on audio resources. Make sure your video's audio track's sample rate matches Unity's.
If you haven't configured it in the player settings then Unity's default of 24kHz will be being used so I would advise changing that to 44.1kHz or 48kHz.

@reuben-originatorkids
Copy link
Author

Thank you, we will try this!

@Chris-RH Chris-RH closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS iOS platform
Projects
None yet
Development

No branches or pull requests

3 participants