# How to get if a specific sound is still playing in a channel?

**URL:** https://qa.fmod.com/t/how-to-get-if-a-specific-sound-is-still-playing-in-a-channel/16844
**Category:** FMOD Engine
**Created:** [March 6, 2021, 7:45am UTC](https://qa.fmod.com/t/how-to-get-if-a-specific-sound-is-still-playing-in-a-channel/16844 "2021-03-06T07:45:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![CMLagne](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@CMLagne](https://qa.fmod.com/u/CMLagne)
#### Post date: [March 6, 2021, 7:45am UTC](https://qa.fmod.com/t/how-to-get-if-a-specific-sound-is-still-playing-in-a-channel/16844/1 "2021-03-06T07:45:58Z")

</div>

Is there some kind of sound ID I can get when playing a sound that I can use to check if a channel is still playing that specific sound?

I know how to get if ANY sound is playing in a channel but if one sound has finished then that channel might be in use for another sound, because I look for any free channel everytime playing a 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: [March 15, 2021, 3:49am UTC](https://qa.fmod.com/t/how-to-get-if-a-specific-sound-is-still-playing-in-a-channel/16844/2 "2021-03-15T03:49:25Z")

</div>

The only way to do this is to have a custom system that tracks when a sound has been created (and its name) and when a sound has been released. You can then query this system to return what is currently in play. Take a look at the “sound played” and “sound stopped” event callbacks of the documentation:

[https://www.fmod.com/resources/documentation-api?version=2.1&page=studio-api-eventinstance.html#fmod\_studio\_event\_callback\_type](https://www.fmod.com/resources/documentation-api?version=2.1&page=studio-api-eventinstance.html#fmod_studio_event_callback_type)

---

<div class="post-metadata">

### Author: ![wills](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/wills/32/2641_2.png) [@wills](https://qa.fmod.com/u/wills)
#### Post date: [September 21, 2021, 10:15pm UTC](https://qa.fmod.com/t/how-to-get-if-a-specific-sound-is-still-playing-in-a-channel/16844/3 "2021-09-21T22:15:39Z")

</div>

If you’re not using FMOD Studio, you can listen for the [`FMOD_CHANNELCONTROL_CALLBACK_END`](https://www.fmod.com/resources/documentation-api?version=2.02&page=core-api-channelcontrol.html) event
