Exemple #1
0
    public float getVolume(FMOD.Studio.MixerStrip p_Bus)
    {
        float volume;

        ERRCHECK(p_Bus.getFaderLevel(out volume));
        return(volume);
    }
Exemple #2
0
        // ----------------------------------------------------------------------------------------------------
        #endregion

        #region Initialization
        // ----------------------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="MixerProperty"/> class.
        /// </summary>
        /// <param name="mixerStrip">The mixer strip.</param>
        /// <param name="isEnabled">if set to <c>true</c> [is enabled].</param>
        /// <param name="busName">Name of the bus.</param>
        /// <param name="volume">The volume.</param>
        public MixerProperty(FMOD.Studio.MixerStrip mixerStrip, bool isEnabled, string busName, float volume)
        {
            this.mixerStrip = mixerStrip;

            this.isEnabled = isEnabled;
            this.busName   = busName;
            this.volume    = volume;
        }