# Easiest way to disable FMOD for debugging?

**URL:** <https://qa.fmod.com/t/easiest-way-to-disable-fmod-for-debugging/20049>\
**Category:** Unreal Engine\
**Created:** [April 1, 2023, 6:56am UTC](https://qa.fmod.com/t/easiest-way-to-disable-fmod-for-debugging/20049 "2023-04-01T06:56:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrane](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@chrane](https://qa.fmod.com/u/chrane)\
**Post date:** [April 1, 2023, 6:56am UTC](https://qa.fmod.com/t/easiest-way-to-disable-fmod-for-debugging/20049/1 "2023-04-01T06:56:03Z")

</div>

When we try to debug something, a lot of the times I feel it would be super helpful to be able to disable FMOD-\> check if the problem still happens → determine if it is an audio issue. What would be the best way to do so?

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [April 4, 2023, 5:40am UTC](https://qa.fmod.com/t/easiest-way-to-disable-fmod-for-debugging/20049/2 "2023-04-04T05:40:16Z")

</div>

Hi,

To clarify, do you want to disable the integration’s FMOD system, disable the entire plugin, or simply set it to output no sound?

---

<div class="post-metadata">

**Author:** ![chrane](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@chrane](https://qa.fmod.com/u/chrane)\
**Post date:** [April 4, 2023, 2:39pm UTC](https://qa.fmod.com/t/easiest-way-to-disable-fmod-for-debugging/20049/3 "2023-04-04T14:39:20Z")

</div>

Disable the integration’s FMOD system. Ideally we want to have a setting so that no FMOD update happens under this mode.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [April 5, 2023, 12:54am UTC](https://qa.fmod.com/t/easiest-way-to-disable-fmod-for-debugging/20049/4 "2023-04-05T00:54:49Z")

</div>

The easiest way to do this would be to modify two lines in `./FMODStudio/Source/FMODStudio/Private/FMODStudioModule.cpp`:

- Edit line 246 to always return false, so that FMOD is never “using sound”: `virtual bool UseSound() override { return false; }`
- Comment out line 575, so that FMOD always returns before creating a system: `//if (!bUseSound)`

This essentially achieves the same outcome as running the project as a dedicated server - the FMOD Studio system is never created in the first place. I’ve taken the liberty of adding this to our internal feature/improvement tracker as well, as while it is a simple change, changing these lines each time you want to test your game without an FMOD system running is a bit unwieldy.

If you run into any issues, feel free to let me know.

---

<div class="post-metadata">

**Author:** ![chrane](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@chrane](https://qa.fmod.com/u/chrane)\
**Post date:** [April 5, 2023, 1:17am UTC](https://qa.fmod.com/t/easiest-way-to-disable-fmod-for-debugging/20049/5 "2023-04-05T01:17:00Z")

</div>

Thank you!! What is line 575 ? We have some small edits here and there in the file so it might not match the original FMODStudioModule.cpp

Edit: nvm got it!

Thanks!

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [April 5, 2023, 1:22am UTC](https://qa.fmod.com/t/easiest-way-to-disable-fmod-for-debugging/20049/6 "2023-04-05T01:22:14Z")

</div>

Line 575 is the second line of `FFMODStudioModule::CreateStudioSystem`, and comes just after `DestroyStudioSystem(Type);` Here’s a code snippet:

```auto
void FFMODStudioModule::CreateStudioSystem(EFMODSystemContext::Type Type)
{
    DestroyStudioSystem(Type);
    if (!bUseSound) // <- comment out this check, so the function always hits return
    {
        return;
    }

    UE_LOG(LogFMOD, Verbose, TEXT("CreateStudioSystem for context %s"), FMODSystemContextNames[Type]);

    // rest of the function below here...
}

```
