Changing volume of a soundfile in narration text

  • #1, by AkcayKaraazmakSunday, 11. February 2018, 14:31 7 years ago
    Hi guys is there any way to change the volume of the soundfile of a narration text? Narration text doesnt have any volume controls just loading a sound file.

    Cheers smile

    Great Poster

    440 Posts


  • #2, by afrlmeSunday, 11. February 2018, 15:02 7 years ago
    I believe audio files linked to narration texts are also controlled by the global voice volume.

    Imperator

    7285 Posts

  • #3, by AkcayKaraazmakSunday, 11. February 2018, 15:05 7 years ago
    But if yes, then it will change all the voice volumes. I need to change them separately:\

    Great Poster

    440 Posts

  • #4, by afrlmeSunday, 11. February 2018, 16:03 7 years ago
    You might be able to do that once Simon has finished working on the new audio system.

    Imperator

    7285 Posts

  • #5, by AkcayKaraazmakSunday, 11. February 2018, 16:13 7 years ago
    Thank you Lee! Looking forward for the update

    Great Poster

    440 Posts

  • #6, by sebastianSunday, 11. February 2018, 16:36 7 years ago
    Thank you Lee! Looking forward for the update

    you could try and see if getting the soundID of the current played narration audio file via lua and then use the SetSoundProperty function to set its volume independantly:

    local soundID = getSoundId('vispath:path/to/narratortext.ogg')
    setSoundProperty(soundID, {flags=1, volume=80}

    Thread Captain

    2346 Posts

  • #7, by AkcayKaraazmakSunday, 11. February 2018, 17:45 7 years ago
    Thank you so much Sebastian, I'll try that!

    Great Poster

    440 Posts

  • #8, by afrlmeSunday, 11. February 2018, 18:24 7 years ago
    @Sebastian: The current Lua sound engine uses the global sound volume channel for sounds played via it. You can tweak the volumes of the individual sound, but it will be x volume level percent of the global sound volume value.

    Imperator

    7285 Posts

  • #9, by sebastianSunday, 11. February 2018, 23:09 7 years ago
    @Sebastian: The current Lua sound engine uses the global sound volume channel for sounds played via it. You can tweak the volumes of the individual sound, but it will be x volume level percent of the global sound volume value.
    Maybe exactly what he needs?

    Thread Captain

    2346 Posts

  • #10, by afrlmeMonday, 12. February 2018, 12:13 7 years ago
    Can you access sounds played via action parts with it? I don't think I've ever actually tried.

    Imperator

    7285 Posts