# 有朋友知道Fmod怎么设置自动闪避功能？

**URL:** <https://qa.fmod.com/t/fmod/18727>\
**Category:** FMOD Studio\
**Tags:** android, cpp\
**Created:** [May 5, 2022, 9:19am UTC](https://qa.fmod.com/t/fmod/18727 "2022-05-05T09:19:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![115452661](https://avatars.discourse-cdn.com/v4/letter/1/f08c70/32.png) [@115452661](https://qa.fmod.com/u/115452661)\
**Post date:** [May 5, 2022, 9:19am UTC](https://qa.fmod.com/t/fmod/18727/1 "2022-05-05T09:19:34Z")

</div>

有朋友知道Fmod怎么设置自动闪避功能？自动闪避就是打开界面，后面的所有声音自动淡入淡出的变小，关闭界面，声音淡入淡出恢复正常？

---

<div class="post-metadata">

**Author:** ![115452661](https://avatars.discourse-cdn.com/v4/letter/1/f08c70/32.png) [@115452661](https://qa.fmod.com/u/115452661)\
**Post date:** [May 5, 2022, 9:20am UTC](https://qa.fmod.com/t/fmod/18727/2 "2022-05-05T09:20:12Z")

</div>

Fmod怎么设置自动闪避功能？自动闪避就是打开界面，后面的所有声音自动淡入淡出的变小，关闭界面，声音淡入淡出恢复正常？

---

<div class="post-metadata">

**Author:** ![Skaven252](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skaven252/32/63_2.png) [@Skaven252](https://qa.fmod.com/u/Skaven252)\
**Post date:** [May 10, 2022, 6:37pm UTC](https://qa.fmod.com/t/fmod/18727/3 "2022-05-10T18:37:36Z")

</div>

If you want to fade out in-game sounds when you open a menu, a common way to do this is to use a mixer snapshot. You need to put the menu UI sounds and the game sounds to different mixer groups. Then when the menu is opened, you can play a looping FMOD event that contains a mixer snapshot that mutes the game sounds. When the menu is closed, the FMOD event is stopped and the in-game sound resumes.
