Background sounds [SOLVED]

  • #1, z red363Monday, 16. May 2022, 03:14 hodinky 2 years ago
    Hello!

    Please tell me the correct solution if there should be two background sounds in the scene.
    For example, the sound of rain and music at the same time.

    Thank you.

    Fanoušek fóra

    101 Posts


  • #2, z wanderinfrogMonday, 16. May 2022, 03:18 hodinky 2 years ago
    Below are instructions I posted in another post for adding a looping background sound to a scene:

    "Add an action to your scene. For Execution type, choose At beginning of scene.

    Click the green plus to add an action, under the type, choose Multimedia -> Play and loop sound infinitely.

    In the Sound file box, link it to your audio file (needs to be .ogg or .opus).

    Save and run and you should have looping background sounds."

    I think you can use this to add as many background sounds/music tracks as you want. 

    Bažant

    3 Posts

  • #3, z esmeraldaMonday, 16. May 2022, 08:47 hodinky 2 years ago
    While the solution with the "beginning of the scene"-action will also work, you could use the sound system.
    Add your sound in a audio container (depending what you want to do with it: a mix, switch or random container) and add that container in the scene properties in the section for audio busses (scroll down the pop up window of the properties)
    The sound will start as soon as the scene is loaded. Depending on your settings for the sound in the audio section the sound will loop or not.

    If the next scene has also the same audio bus set, the sound will continue to play, like it does when set as background sound.
    you can set multiple audios like that. 

    Here is a link to the explanation what the different containers can do:

    Zabiják klíčů

    525 Posts

  • #4, z red363Monday, 16. May 2022, 23:10 hodinky 2 years ago
    Thanks for answers!
    I guessed that you need to use audio containers, I'll try to understand this topic.

    Fanoušek fóra

    101 Posts

  • #5, z afrlmeMonday, 16. May 2022, 23:18 hodinky 2 years ago
    Thanks for answers!
    I guessed that you need to use audio containers, I'll try to understand this topic.

    It works similar to how background music works, except you can link multiple audio containers/sounds into it. Which audio container(s), you use will depend on what you want to do. You need to link to them in scene properties section & if you link the same audio container(s) to multiple scenes then they will continue playing during scene change without pausing/restarting just like how scene background music works.

    https://i.gyazo.com/b1b1b91c1e3b840b746aaf6aef28ce96.png
    https://i.gyazo.com/a61087530be79390ab92534099447827.png

    Imperátor

    7285 Posts

  • #6, z red363Tuesday, 17. May 2022, 22:07 hodinky 2 years ago
    Yes thank you! great!

    Fanoušek fóra

    101 Posts