Announcement

Collapse
No announcement yet.

Control master egnine volume UDK

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Control master egnine volume UDK

    I want to add to control volume of music and such of the engine is there any thing to do it?]

    How to assign sound cues or sound wavs a group audio group?
    Last edited by Neongho; 05-19-2020, 01:19 PM.
    Some cool unreal projects you may like!


    Developer of GOTA - Survivalism Gladiatorial game Buy the game google gladiators of the arena steam https://store.steampowered.com/app/7..._Of_The_Arena/

    Download the demo Download the demo
    external link Dropbox DropBox

    Become a c++ Professional now C++ Networking Tutorial

    #2
    You can adjust the engine master volume like so:
    Code:
    class'Engine'.static.GetAudioDevice().TransientMasterVolume = DesiredMasterVolume;

    Comment


      #3
      What about audio groups, how to assign them?
      Some cool unreal projects you may like!


      Developer of GOTA - Survivalism Gladiatorial game Buy the game google gladiators of the arena steam https://store.steampowered.com/app/7..._Of_The_Arena/

      Download the demo Download the demo
      external link Dropbox DropBox

      Become a c++ Professional now C++ Networking Tutorial

      Comment


        #4
        Hello Neongho

        Man, I have done something simple, but useful for my game. As my game uses Arabic Musics, and many people who don't understand arabic asked me if would be possible to just turn off the music, so I made a simple function, inside my custom Sacleform Pause Menu, which allows the user to turn off and on the music.

        It's far away from being a working music volume control system, but it does the job, and I always prefeer the most simple things I can do.

        I will skip the scaleform part here, as it is a bit complicated, gave me a lot of headaches to get it working.

        I simply created these 2 functions, inside UTPlayerController (yes, I use UTGame as the base class of my game, which I find much easier than creating new classes from scratch):

        Code:
        //custom functions to toggle music in-game///////////////////////////////
        function TurnOffGameMusic()
        {
        ConsoleCommand("MODIFYSOUNDCLASS GameMusic VOL=0");
        }
        
        function TurnOnGameMusic()
        {
        ConsoleCommand("MODIFYSOUNDCLASS GameMusic VOL=0.50");
        }
        Now to assign a music (sound cue) to a specific sound group is very simple. Just inside the content browser, you right click over any sound cue, then search for the sound group option, there are many soundgroup already created. There is a soundgroup called Music, which is what I am using.

        So the console command will change the volume of all sounds running in game which belong to the specified soundgroup (which is the same as soundclass).

        I hope this helps you my brother!

        Cheers!
        https://sites.google.com/view/udkultimate/

        Comment


          #5
          Oh thanks, I will search for it.... thanks a lot man, sometimes even the music it's annoying for me.....
          Some cool unreal projects you may like!


          Developer of GOTA - Survivalism Gladiatorial game Buy the game google gladiators of the arena steam https://store.steampowered.com/app/7..._Of_The_Arena/

          Download the demo Download the demo
          external link Dropbox DropBox

          Become a c++ Professional now C++ Networking Tutorial

          Comment

          Working...
          X