stop ALL currently playing sound

  • #1, by andy-rinaldiTuesday, 22. July 2014, 21:48 10 years ago
    Hi,
    I would stop ALL currently playing sound but not the background music. How can I do it?
    Thanks.

    Forum Fan

    160 Posts


  • #2, by afrlmeTuesday, 22. July 2014, 22:22 10 years ago
    not sure about actually stopping them from playing but you could simply mute sound fx & voice with a couple lines of lua script.
    setVolume(eSoundVolume, 0)
    setVolume(eSpeechVolume, 0)
    

    I recommend taking a look at my global mute/restore sound scripts, which can be found here. It mutes & restores everything mind.

    Imperator

    7278 Posts

  • #3, by andy-rinaldiTuesday, 22. July 2014, 23:18 10 years ago
    I should stop all voices and start a new voice but I don't know when finish the first voice, In my case, I can't use the mute option...
    However, I'll take a look at your script.
    I'm waiting for your lua tutorials in youtube... wink

    Forum Fan

    160 Posts

  • #4, by afrlmeTuesday, 22. July 2014, 23:38 10 years ago
    I'm a bit too busy at the minute for that. Settling in here, getting around to answering peoples messages, threads & emails etc & am awaiting on news of a bit of freelance development work.

    Imperator

    7278 Posts

  • #5, by andy-rinaldiWednesday, 23. July 2014, 00:50 10 years ago
    Don't worry man, I was joking. smile

    Forum Fan

    160 Posts