# What does it mean to delete a "call"?

**URL:** https://qa.fmod.com/t/what-does-it-mean-to-delete-a-call/18256
**Category:** Unity
**Created:** [January 22, 2022, 3:50am UTC](https://qa.fmod.com/t/what-does-it-mean-to-delete-a-call/18256 "2022-01-22T03:50:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [January 22, 2022, 3:50am UTC](https://qa.fmod.com/t/what-does-it-mean-to-delete-a-call/18256/1 "2022-01-22T03:50:15Z")

</div>

In the Karting tutorial, it says to delete all calls to “playsound”

What exactly does this mean?

Here is the script containing “playsound”

What do I delete? All of it?

```
void PlaySound(AudioClip sound)
{
    if (!sound)
        return;

    if (!m_AudioSource)
    {
        m_AudioSource = gameObject.AddComponent<AudioSource>();
        m_AudioSource.outputAudioMixerGroup = AudioUtility.GetAudioGroup(AudioUtility.AudioGroups.HUDObjective);
    }

    m_AudioSource.PlayOneShot(sound);
}
```

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [January 28, 2022, 2:27pm UTC](https://qa.fmod.com/t/what-does-it-mean-to-delete-a-call/18256/2 "2022-01-28T14:27:18Z")

</div>

This is the creation of the function `PlaySound`. A “call” would be any time this function is used in other parts of the Unity project. You need to do a search in all scripts for any time the `PlaySound` function is used and delete those lines. You should be able to do a search across the entire project in your preferred IDE.

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [April 5, 2022, 3:42pm UTC](https://qa.fmod.com/t/what-does-it-mean-to-delete-a-call/18256/3 "2022-04-05T15:42:53Z")

</div>

Thanks RIchard 🙂 Got it
