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

Changing volume of a soundfile in narration text

  • #1, by AkcayKaraazmak 8 years ago Zitieren
    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
  • #2, by afrlme 8 years ago Zitieren
    I believe audio files linked to narration texts are also controlled by the global voice volume.
  • #3, by AkcayKaraazmak 8 years ago Zitieren
    But if yes, then it will change all the voice volumes. I need to change them separately:\
  • #4, by afrlme 8 years ago Zitieren
    You might be able to do that once Simon has finished working on the new audio system.
  • #5, by AkcayKaraazmak 8 years ago Zitieren
    Thank you Lee! Looking forward for the update
  • #6, by sebastian 8 years ago Zitieren
    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}
  • #7, by AkcayKaraazmak 8 years ago Zitieren
    Thank you so much Sebastian, I'll try that!
  • #8, by afrlme 8 years ago Zitieren
    @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.
  • #9, by sebastian 8 years ago Zitieren
    @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?
  • #10, by afrlme 8 years ago Zitieren
    Can you access sounds played via action parts with it? I don't think I've ever actually tried.