# Niagara Sample Audio from custom Submix

**URL:** <https://forums.unrealengine.com/t/niagara-sample-audio-from-custom-submix/721726>\
**Category:** FX\
**Tags:** audio-bugs, particle-systems, unreal-engine, question\
**Created:** [December 5, 2022, 9:39am UTC](https://forums.unrealengine.com/t/niagara-sample-audio-from-custom-submix/721726 "2022-12-05T09:39:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OhBriz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ohbriz/32/466374_2.png) [@OhBriz](https://forums.unrealengine.com/u/OhBriz)\
**Post date:** [December 5, 2022, 9:39am UTC](https://forums.unrealengine.com/t/niagara-sample-audio-from-custom-submix/721726/1 "2022-12-05T09:39:28Z")

</div>

I’m trying to make my Niagara System react only to one specific Audio Cue, I’m using the Audio Spectrum node to sample the audio, which takes in a Submix input  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/b/37b0e0e0cd32416161c1d9c818468c75695336c9.png)

The FX responds fine when using “MasterSubmixDefault”, but I can’t find a way to make it work properly using a custom Submix.

I have 2 sound cues, one is a song and the other is background noise, I’m trying to have my FX respond only to the song.  
so I made 3 new Submixes, a new Master, one for the Background and one for the Music  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/1/ab1afc674a85bed551ec4c0a90cf6972e8cf26c6.png)

Since now I have a new Master Submix, I’ve replaced the Engine Default one for the new one in the Project Settings

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/0/c009ef8fd7ae818beb94cb7bd0b2b5c8a8d23bc6.png)

Opened both my cues assets and changed the Base Submix accordingly  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/a/e5a0ac5fd54e88ee6fd15c5f8ddc2aa32e529db8.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/7/037374c60fed95bd9a5de93c1056fa4ee1770464.png)

Now when I assign “MasterSubmix” to my particle system it reacts to all the sounds in the level as expected, but when I replace it with “MusicSubmix” it stops reacting altogether.

I thought the issue might have been that the MusicSubmix is not receiving any audio information making my particle system not react to it.  
However, looking at the documentation I managed to debug all three Submixes separately using Spectral Analysis and it looks like the 2 different cues are sent to their Submixes correctly.

> **[Submixes](https://docs.unrealengine.com/4.26/en-US/WorkingWithMedia/Audio/Submixes/)**
>
> An overview of submixes and how to use them

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/5/eb552cbaf874f1e736cfba45ecdd99c981b2acb2.png)

I’ve been struggling with this for a while now, I haven’t done much Audio in Unreal before so I might be missing something. I’m just confused if there is something wrong with my setup or if there is a problem with Niagara.  
I also tried using the “Sample Audio Buffer” node that uses an Audio Oscilloscope input, but it also takes in a Submix parameter and it’s giving me the same problem.

Since I can debug the Submixes in blueprint using the Spectral Analysis I could maybe just feed the Magnitude float array to Niagara and drive the FX from that, but definitely, that doesn’t feel like the appropriate way to approach this.

---

<div class="post-metadata">

**Author:** ![James.Wizard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@James.Wizard](https://forums.unrealengine.com/u/James.Wizard)\
**Post date:** [April 8, 2023, 5:13am UTC](https://forums.unrealengine.com/t/niagara-sample-audio-from-custom-submix/721726/2 "2023-04-08T05:13:15Z")

</div>

In case anyone is struggling with this, the answer seems to be to uncheck ‘Auto Disable’ in the submix. Why? No idea.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/3/fe394d931844d878c260eede5bac9861804b49f7.png)

---

<div class="post-metadata">

**Author:** ![OhBriz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ohbriz/32/466374_2.png) [@OhBriz](https://forums.unrealengine.com/u/OhBriz)\
**Post date:** [April 13, 2023, 7:32am UTC](https://forums.unrealengine.com/t/niagara-sample-audio-from-custom-submix/721726/3 "2023-04-13T07:32:35Z")

</div>

I can confirm this works, I’ve turned off “Auto Disable” on both of the submixes and now the Niagara Systems are behaving as expected

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/c/21c47efbff6e7f37f5b2ccc9c3b9fb451541cb3f.png)

When hovering over the parameter it reads:

> Auto-manage enabling and disabling the submix as a CPU optimization. It will be disabled if the submix and all child submixes are silent. It will re-enable if a sound is sent to the submix or a child submix is audible.

It makes sense that they get disabled if not used, but it looks like they are not getting re-enabled…

---

<div class="post-metadata">

**Author:** ![ruigol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruigol/32/964789_2.png) [@ruigol](https://forums.unrealengine.com/u/ruigol)\
**Post date:** [November 13, 2023, 12:43pm UTC](https://forums.unrealengine.com/t/niagara-sample-audio-from-custom-submix/721726/4 "2023-11-13T12:43:45Z")

</div>

thanks! this actually helped me a lot xD
