Mute option?

Is there a way to have a toggle to mute sounds?
I have a custom pause menu using Show Choice commands, and want to add a mute button. (For a mobile game).
Ideally there would two toggles, one to mute the background music and one for sound effects.
I have disabled the options menu, as I feel like the default one would over complicate things for players, so I wanted to just have a single mute button instead of the standard incremental sound controls.
If someone could make a script that does this with script calls or plugin commands?

Any ideas?
Thanks!
I have a master volume plugin that while not doing exactly what you need, might be able to help you figure the rest out on your own.

https://forums.rpgmakerweb.com/index.php?threads/malikis-master-volume-ver-1-0.76127/
Works perfectly for adding a new option in the settings menu, but is there a way (with a script call or plugin command?) that can just toggle it to zero or 100 percent?
Thanks!
I figured you could do that on your own, but I guess I could make script calls for it.
Just give me a little time.
Unfortunately my coding abilities arent that great. I really appreciate it. Thanks!
I hacked something together so I thought I would share. Dunno if it's fit for purpose. Seems to do what I wanted it to do, hehe.

Download

Spoiler: Source Code
Code:
/*
* clockoutMuteAudio.js
* 2017-05-22
* Copyright (c) 2017 Dominic Herrera
* License: Do anything you want.
* Disclaimer: NO WARRANTY.
*/

/*:
 * @plugindesc Mute audio via script.
 * @author Clock Out
 * @help
 * clockout.audio.toggleMute(volume);
 *
 * Parameter {string} volume Expects one of the 4 volume names. bgmVolume,
 * bgsVolume, seVolume, or meVolume.
 *
 * Example - Mute background music
 * clockout.audio.toggleMute("bgmVolume");
 *
 * Run the same script again to restore the audio setting to its previous
 * volume level.
 */

var clockout = clockout || {};

(function () {
    "use strict";

    var saved = {
        bgmVolume: undefined,
        bgsVolume: undefined,
        seVolume: undefined,
        meVolume: undefined
    };

    clockout.audio = clockout.audio || {};

/**
 * Toggle mute of an audio track by name.
 * @param {string} volume One of the 4 audio volume names. bgmVolume,
 * bgsVolume, seVolume, or meVolume.
 */

    clockout.audio.toggleMute = function (volume) {
        if (saved.hasOwnProperty(volume) === false) {
            return;
        }

// Not muted. Save current value and mute.

        if (saved[volume] === undefined) {
            saved[volume] = AudioManager[volume];
            AudioManager[volume] = 0;
            return;
        }

// Muted. Restore volume.

        AudioManager[volume] = saved[volume];
        saved[volume] = undefined;
    };
}());
And done!
Check my link for the updated plugin.
Works perfectly, thanks!!

Original thread: https://forums.rpgmakerweb.com/threads/mute-option.78938/