Audio - Control volume

0 favourites
  • 7 posts
From the Asset Store
Monster library vol 3 is the third volume in a library series. In this volume we have focused our efforts on recreating
  • Hi!

    I have a problem with the audio feature:

    <img src="https://dl.dropbox.com/u/39121175/SoundIssue01.png" border="0" />

    My problem here is that the sound seems to be played loudly for a frame and then the volume is reduced...

    I'd like to set the sound volume BEFORE playing it for the first time, but I don't see how: is it possible?

    The sound I want to set the volume is identifyable by its tag and this tag is defined when the sound is played... So I don't see any way to set the volume before the sound is played.

    I could change the volume directly in the file the but still, I'd like to master these audio things in C2 (and it could make the process easier), that's why I ask this question.

    Thanks in advance for your help :)

    Rag'

  • Just do

    Every tick - set volume of "gun" to -10db

    or what ever feels most comfortable to you

  • That works, but I think it'd be a waste of processing power to keep on setting a sound file's volume to the same value on every tick.

    How about..

    Play the sound file

    Set playback rate to 0

    Set the volume

    wait 0.1s

    Set playback rate to 1

  • The problem remains the same in these two cases: a very very short sound is played (probably for a frame) and THEN the volume is set lower.

    As I said, you HAVE to play the sound to assign it a tag (even with "preload" you cannot do it), and use this tag in order to tweak the sound in question. So it seems normal that the sound is played normally for one frame before you can tweak it.

    Is there nothing to tweak the sound parameters before it's played? If so, something's clearly missing in C2. <img src="smileys/smiley30.gif" border="0" align="middle" />

    Did I miss something obvious?

  • That's not the case for me, all of my sounds are working just fine, thanks to every tick...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you actually tried changing the volume of the tag on the start of the layout, and it didn't work?

  • It didn't work and it seems normal since on the start of the layout, the tag in question doesn't exist yet. It's defined at the very moment the sound is played for the first time.

    Well, I've found a rough solution: make this sound volume lower in a sound editing software. It's a kind of defeat but something's clearly missing in C2... <img src="smileys/smiley18.gif" border="0" align="middle" /> (the possibility to assign a tag without playing the sound)

    Thanks for your answers, all of you! <img src="smileys/smiley32.gif" border="0" align="middle" />

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