# Quietest stealing policy

**URL:** https://qa.fmod.com/t/quietest-stealing-policy/18600
**Category:** FMOD Studio
**Created:** [March 30, 2022, 6:23pm UTC](https://qa.fmod.com/t/quietest-stealing-policy/18600 "2022-03-30T18:23:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![itel](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/itel/32/373_2.png) [@itel](https://qa.fmod.com/u/itel)
#### Post date: [March 30, 2022, 6:23pm UTC](https://qa.fmod.com/t/quietest-stealing-policy/18600/1 "2022-03-30T18:23:13Z")

</div>

Hello,

I found a weird behavior of quietest stealing policy.

For example, I take the “Weapons/Explosion” event from the FMOD Studio sample project, set up “Max Instances” into 1, and “Stealing” into “Quietest”. Then, add “Send” and automation for its level with a parameter. Something like that:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/2be61a9b00327222b27300c781ac1b9bdc83c2a0.png)

(specific bus and parameter aren’t important, these already exist in the project).

And now, I just start to play this oneshot event via Studio API in an infinite loop with a one-second interval:

```auto
while (true)
{
    if (IsTimeoutOver())
    {
        FMOD::Studio::EventInstance* instance = nullptr;
        description->createInstance(&instance);

        instance->start();
        instance->release();
    }

    system->update();
    Sleep(20);
}

```

Everything works fine and as expected: I hear “Boom” every second.

But if I set the parameter to some non-zero value (and the “send” level becomes non-zero too) stealing policy looks like “None”: I hear only one “Boom” every 3 seconds (which is the length of the event).

Is it wrong or am I missing something?  
FMOD Studio 2.02.06

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [April 6, 2022, 5:31am UTC](https://qa.fmod.com/t/quietest-stealing-policy/18600/2 "2022-04-06T05:31:08Z")

</div>

I have reproduced this issue as you’ve described, thank you for flagging. We are currently investigating a bug with the “Quietest” voice stealing setting that might be related to this behaviour. You can workaround this by overriding the minimum and maximum distance on the event instance before calling `EventInstance::start`, e.g:

```auto
while (true)
{
    if (IsTimeoutOver())
    {
        FMOD::Studio::EventInstance* instance = nullptr;
        description->createInstance(&instance);

        instance->setProperty(FMOD_STUDIO_EVENT_PROPERTY::FMOD_STUDIO_EVENT_PROPERTY_MINIMUM_DISTANCE, 1.0f));
        instance->setProperty(FMOD_STUDIO_EVENT_PROPERTY::FMOD_STUDIO_EVENT_PROPERTY_MAXIMUM_DISTANCE, 20.0f));

        instance->start();
        instance->release();
    }

    system->update();
    Sleep(20);
}

```

Please let me know if that doesn’t work for you and I will investigate further.

---

<div class="post-metadata">

### Author: ![itel](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/itel/32/373_2.png) [@itel](https://qa.fmod.com/u/itel)
#### Post date: [April 7, 2022, 1:45pm UTC](https://qa.fmod.com/t/quietest-stealing-policy/18600/3 "2022-04-07T13:45:59Z")

</div>

Hi,  
Unfortunately, this doesn’t work. The behavior is precisely the same as without these two lines.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [April 8, 2022, 12:33am UTC](https://qa.fmod.com/t/quietest-stealing-policy/18600/4 "2022-04-08T00:33:57Z")

</div>

So it does, I must have missed the part with automating to a send when testing before.  
That is definitely a weird and separate bug, even if the send is muted it still occurs. I’ve passed this on to the development team to look into.  
Thanks for reporting this issue!
