# Loop Regions and Programmer Sounds

**URL:** <https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334>\
**Category:** Unreal Engine\
**Tags:** ue4\
**Created:** [February 8, 2022, 4:32pm UTC](https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334 "2022-02-08T16:32:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrasticNick](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@DrasticNick](https://qa.fmod.com/u/DrasticNick)\
**Post date:** [February 8, 2022, 4:32pm UTC](https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334/1 "2022-02-08T16:32:12Z")

</div>

I am trying to play a looping segment of a song in our game’s menu, as a preview of the sound. The song is loaded via createSound() and played on an a UFmodAudioComponent. However when I play the event in-game, it does not respect the volume parameter or loop region on the timeline. Is there something I am setting up incorrectly here, or is this not supported with programmer sounds?

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

---

<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:** [February 15, 2022, 2:57am UTC](https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334/2 "2022-02-15T02:57:31Z")

</div>

What version of UE and FMOD are you using? I’ve tested with the latest FMOD version in UE4.27 and automation/looping is working correctly on programmer sounds. Does it work with the other [programmer sound approaches](https://www.fmod.com/resources/documentation-unreal?version=2.02&page=user-guide.html#programmer-sounds)?

---

<div class="post-metadata">

**Author:** ![DrasticNick](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@DrasticNick](https://qa.fmod.com/u/DrasticNick)\
**Post date:** [February 15, 2022, 3:17am UTC](https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334/3 "2022-02-15T03:17:29Z")

</div>

We’re using UE 4.27.1 and FMOD 4.02.03. We haven’t tried the other programmer sound approaches as they wouldn’t work with the current setup we have (both shipping and user-imported audio tracks)

---

<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:** [February 15, 2022, 4:23am UTC](https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334/4 "2022-02-15T04:23:51Z")

</div>

Just double checking that FMOD version number, is that 2.02.03 or 2.02.04 you are using?

---

<div class="post-metadata">

**Author:** ![DrasticNick](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@DrasticNick](https://qa.fmod.com/u/DrasticNick)\
**Post date:** [February 15, 2022, 4:44am UTC](https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334/5 "2022-02-15T04:44:58Z")

</div>

Just checked, and it is 2.02.03

---

<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:** [February 16, 2022, 4:35am UTC](https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334/6 "2022-02-16T04:35:09Z")

</div>

My suspicion is that the sound file is playing by itself and not through the Programmer Instrument. Are other non-automation things having any effect? e.g Muting the event in FMOD and rebuilding the banks, adding distortion effects etc.  
If you attach the [Profiler](https://fmod.com/resources/documentation-studio?version=2.02&page=profiling.html) does the event look like it’s outputting audio?  
Can you please share a code snippet of how you are setting your programmer sound?

---

<div class="post-metadata">

**Author:** ![DrasticNick](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@DrasticNick](https://qa.fmod.com/u/DrasticNick)\
**Post date:** [February 16, 2022, 6:44pm UTC](https://qa.fmod.com/t/loop-regions-and-programmer-sounds/18334/7 "2022-02-16T18:44:57Z")

</div>

I was able to find the issue - there was a call to SetEvent on that audio component called elsewhere in code that was setting it to use the incorrect event.

Thank you for the help and sorry for wasting your time!
