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"

Audio Sliders

So i have made myself some audio sliders and binded a function to them, then when it detects a value change it changes the float of the volume.

alt text

I've set my slider to 0.75 so the only way you can move the slider is down to lower the volume but it doesn't it only seem to increase it.

Product Version: UE 4.12
Tags:
more ▼

asked Oct 05 '16 at 10:38 PM in Blueprint Scripting

avatar image

Koaku
131 26 25 35

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

The way you currently have implemented this will cause our Music to Play each time the slider value changes. What you need to do instead is to call PlaySound at Location on event begin play, and then just set the variable VolumeMultiplier by calling the setter from the Music variable. Also, I am assuming you want to play a background music for your game, therfor I would recommend using PlaySound2D instead, as play sound at location will spawn the sound at a location (in this case 0,0,0)

more ▼

answered Oct 06 '16 at 12:13 AM

avatar image

Night Watcher
1.7k 44 12 71

avatar image Koaku Oct 06 '16 at 12:53 AM

I have done this and it still didn't work, its stooped more music from being played but didn't affect the audio volume.alt text alt text ^ dont know if any of this is wrong

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

If you want to be able to control the volume of the music you could set up a sound cue with a continuous modulator, you could then control the volume of the music outside of the sound cue once spawned.

more ▼

answered Mar 30 '18 at 01:22 PM

avatar image

l.everest
1 3 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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