Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

setVolume(eGlobalVolume, value) is ignored in most cases

  • #1, by Lebostein 11 years ago Zitieren
    if you set setVolume(eGlobalVolume, 0) then you should hear nothing. But some played sounds or if you set setVolume(eSoundVolume, ...) reset the global volume. It is very mystic. The values of sound, music and the global value seems reseting/ignoring each other if you change one of them.

    What means "GlobalVolume"? Or is this a bug?
  • #2, by afrlme 11 years ago Zitieren
    I believe it is a bug in the build. Global volume is essentially the master volume level for all the different sound types (music, voice, effects & movies).

    Quick example:

    global volume = 100; sound volume = 100 - the sound volume would be played at the loudest setting possible.

    global volume = 80; sound volume = 100 - the sound would be played at 80% volume.

    All sound channels take into account the global volume, the volume of the sound type & the volume set for the played sound file itself. Therefore it returns the calculated volume based on the calculated percentage returned from what I just mentioned.

    here's a quick bit of math: (I hate math by the way)

    global volume: 80%; sound volume: 70%
    -- + --
    70% of 80% = 56% (70 / 100 = 0.7 | 0.7 * 80 = 56)

    I know this doesn't exactly provide a solution, but hopefully it explains how the volumes are calculated.
  • #3, by Lebostein 11 years ago Zitieren
    OK, the global volume is what I expected. The it must be a bug. Could be a Mac OS bug, not tested on Windows
  • #4, by BigStans 11 years ago Zitieren
    Fixed - in the next version
  • #5, by Lebostein 11 years ago Zitieren
    Yeah!

    Any news about the release of the next official bugfix build?
  • #6, by BigStans 11 years ago Zitieren
    Yes smile It's in the QA currently.
  • #7, by Lebostein 11 years ago Zitieren
    Other issues remain. If you start a game with eGlobalVolume = 0 (GlobalVolume = 0 in ini-file), then the game runs with full volume. I found out that eGlobalVolume is ignored after starting a game until one of the other volume controls was changed
  • #8, by Machtnix 11 years ago Zitieren
    Ich habe sämtliche (ich glaube, es gibt drei oder vier, also: Musik=0, Sound=0, Sprache=0 usw.) Volumeneinstellungen parallel auf 0 gesetzt und zu einer Aktion zusammengefasst und mit einem Tastenbefehl zum Stummschalten versehen.
  • #9, by Lebostein 11 years ago Zitieren
    Na, gut, das kann man machen. Aber das hier ist das Bug-Forum. Hier sollen Fehler gemeldet werden und das ist definitiv ein Fehler. Schließlich kann der unwissende Spieler ja den globalen Regler auf 0 setzen und wundert sich dann, warum immer noch Ton aus dem Lautsprecher kommt...
  • #10, by BigStans 11 years ago Zitieren
    Fixed. smile
  • #11, by Lebostein 11 years ago Zitieren
    I am not sure, is this fix released already?