# FMOD has no sound on the HarmonyOS system

**URL:** <https://qa.fmod.com/t/fmod-has-no-sound-on-the-harmonyos-system/22125>\
**Category:** FMOD Engine\
**Tags:** ios, android, cpp\
**Created:** [September 25, 2024, 7:07am UTC](https://qa.fmod.com/t/fmod-has-no-sound-on-the-harmonyos-system/22125 "2024-09-25T07:07:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chensheng990518](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@chensheng990518](https://qa.fmod.com/u/chensheng990518)\
**Post date:** [September 25, 2024, 7:07am UTC](https://qa.fmod.com/t/fmod-has-no-sound-on-the-harmonyos-system/22125/1 "2024-09-25T07:07:32Z")

</div>

Before my engine on Android can be used very well fmod,Recently I am ready to access the mobile phone HarmonyOS system,According to the official documents to make a special call to the HarmonyOS platform,Create fmod sound and play,There has been no sound。 The query status is always playing, and parameters such as volume are all right。  
And open my app, play a sound, the app that is playing music in the background is not interrupted, it looks like nothing happened, is it that I didn’t use it correctly?  
I’m very anxious, please can anyone help me, thank you very much

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 26, 2024, 1:35am UTC](https://qa.fmod.com/t/fmod-has-no-sound-on-the-harmonyos-system/22125/2 "2024-09-26T01:35:38Z")

</div>

Hi,

A solution was posted here for a similar issue: [Sound Cannot be Heard - #3 by luoxixuan](https://qa.fmod.com/t/sound-cannot-be-heard/21544/3).

If that does not solve it could I please grab:

- Your FMOD engine version
- A code snippet of the FMOD engine initialization and how you trigger the sound

Thanks

---

<div class="post-metadata">

**Author:** ![chensheng990518](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@chensheng990518](https://qa.fmod.com/u/chensheng990518)\
**Post date:** [September 26, 2024, 2:40am UTC](https://qa.fmod.com/t/fmod-has-no-sound-on-the-harmonyos-system/22125/3 "2024-09-26T02:40:00Z")

</div>

I can now produce sound normally by following the instructions in this post.  
But my version is 2.02.22

I conducted some tests on the previous program and found that there were still some abnormal areas. The frequency of the sound was much faster than normal, and occasionally there were abnormal situations when switching to the background. But at least the sound played out, I’m still very happy. Thank you very much to the FMOD team for their help 🤠

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 29, 2024, 10:54pm UTC](https://qa.fmod.com/t/fmod-has-no-sound-on-the-harmonyos-system/22125/4 "2024-09-29T22:54:43Z")

</div>

Good to hear it is working now.

> [@chensheng990518](#):
>
> occasionally there were abnormal situations when switching to the background

This issue may have been solved in 2.02.23: [FMOD Engine | Detailed Revision History](https://fmod.com/docs/2.02/api/welcome-revision-history.html#:~:text=Core%20API%20%2D%20OpenHarmony%20%2D%20Added%20support%20for%20System%3A%3AmixerSuspend%20and%20System%3A%3AmixerResume%20to%20allow%20recovery%20of%20audio%20when%20returning%20from%20the%20background).

> [@chensheng990518](#):
>
> The frequency of the sound was much faster than normal

Would it be possible to elaborate on this issue?

---

<div class="post-metadata">

**Author:** ![chensheng990518](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@chensheng990518](https://qa.fmod.com/u/chensheng990518)\
**Post date:** [October 25, 2024, 6:33am UTC](https://qa.fmod.com/t/fmod-has-no-sound-on-the-harmonyos-system/22125/5 "2024-10-25T06:33:21Z")

</div>

I use FMOD to play sound according to the same playback logic, but this is how it performs on the HarmonyOS platform. I don’t know what happened, there are only some differences from an auditory perspective.

---

<div class="post-metadata">

**Author:** ![li\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/li_fmod/32/6577_2.png) [@li\_fmod](https://qa.fmod.com/u/li_fmod)\
**Post date:** [October 28, 2024, 4:54am UTC](https://qa.fmod.com/t/fmod-has-no-sound-on-the-harmonyos-system/22125/6 "2024-10-28T04:54:06Z")

</div>

HI, since Connor is away, I will be continuing the investigation.

> [@chensheng990518](#):
>
> but this is how it performs on the HarmonyOS platform.

Unfortunately, I was not able to reproduce the issue. Does the sound only play faster than expected on Harmony OS platform? Does this issue occur with all events or just specific ones? Would it be possible to elaborate on how to reproduce the issue?

You could consider using [FMOD Engine | 7. Core API Reference | | Channel::setFrequency](https://fmod.com/docs/2.02/api/core-api-channel.html#channel_setfrequency) to directly reduce the frequency, setting it to half of a typical 44100Hz rate (22050 Hz) to see if it slows down the playback speed.

Alternatively, you could enable fast mode on the HarmonyOs platform to see if it helps.

I will link the detailed process here:

> [@鸿蒙系统下fmod声音被闹钟中断后没有恢复如何解决](https://qa.fmod.com/t/fmod/22108/9):
>
> 感谢你分享的信息以及让我们注意到这个问题。 经过测试后我发现，在团结引擎里为了确保音频驱动能够正确切换为快速模式（Fast Mode），需要在 FMOD 序列化之前（即预初始化阶段）完成设置。 详细的设置方式可以看一下这个链接：[Unity Integration | 11. Scripting Examples | Callback Handler](https://www.fmod.com/docs/2.02/unity/examples-callback-handler.html) 具体流程如下： 新建一个 CallbackHandler 脚本 using System; using UnityEngine; [CreateAssetMenu(menuName = "My FMOD Callback Handler")] public class MyFMODCallbackHandler : FMODUnity.PlatformCallbackHandler { public override void PreInitialize(FMOD.Studio.System studioSystem, Action\<FMOD.RESULT, string\> reportResult) { …

Hope this helps! let me know if the issue persists.
