Audio : how to apply a compressor to multiple tags at the same time

0 favourites
  • 3 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • Hello,

    I want to prevent the games audio volume to exceed a certain value. Im familiar with audio and I know how to use a compressor, but I want to apply the compressor to the master volume, or even better, to some groups of sound in particular.

    I already use tags for my sounds, for different reasons (effects, postionning, etc.), but it seems that a sound cannot have more than one tag, which means that I cannot create "tracks" which contains sounds that already have different tags.

  • You could make an array, and group audio in there, loop through it, and do what you need with it.

    0,0 -> group, tag

    i.e.

    menu, hover

    menu, click

    menu, songintro

    game, click

    game, walk

    game, music

    To loop through game tags

    for 0 to array.width

    compare 2 values: array.at(loopindex,0) = "game"

    action: set volume for tag array.at(loopindex,1)

    Something along those lines

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, this could be a good way to create some kind of audio groups and subgroups ! I will try to adapt it to my needs and see what I can get.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)