x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How do you mute ALL audio on multiple levels?

Hello, I'm looking for a simple way to mute audio/music on every single level in my game.

My Main Menu level has an 'options' section where the 2 buttons are to control the audio (on and off).

The second level is the level which contains the audio (which i want to be able to mute and unmute), so for example in the character blueprint I've added in a 'Play sound at location' after 'Event on jumped'. I've added a few other audio clips in this way.

I've seen online a few times about making sound mixers and then controlling them that way, but that only works if that is set up in the same level. My issue is I want the Main Menu level to control the audio for other levels.

I have an 'instance' set up I just don't know how to hook it all up.

I am very new to all of this so please don't feel bad to reply with very simple terms.

Many thanks!

Product Version: UE 4.19
Tags:
more ▼

asked Apr 25 '19 at 07:20 PM in Everything Else

avatar image

Etheranda
8 1 1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi,

  1. First you need to setup your SoundClasses alt text alt text master audio can have children if you want to mute just specific types of audio but with the parent (master), you can mute both.

  2. Next, make sure all audio cues have a sound class assigned. alt text

  3. Create a Sound Mix and assign a SoundClass (Master so we can mute all audio) alt text

  4. Blueprint code: check the image, You can do this inside your option widget and store the variable in a savegame like I did it (float or boolean) so the settings are saved for the next startup where you just push the current settings again. (the blue SG node is my savegame) If you don't use savegame you can store variables for the play session inside your GameInstance which is consistent no matter which levels your player is in (but it's not saved for the next play session). The default instance also needs to be set in the project Settings>Maps & modes alt text (This setup is a mute audio Toggle)

answerhub.png (54.1 kB)
answerhub2.png (31.8 kB)
answerhub5.png (78.7 kB)
answerhub3.png (56.0 kB)
answerhub4.png (100.8 kB)
more ▼

answered Apr 26 '19 at 07:17 AM

avatar image

lkav
1.3k 9 5 10

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question