Beispiel #1
0
        /// <summary>
        /// Send to all client to change the mixer of a playing sound
        /// </summary>
        /// <param name="soundSpawnToken">The token that identifies the SoundSpawn uniquely among the server and all clients </param>
        /// <param name="audioSourceParameters">The Audio Source Parameters to apply.</param>
        /// <returns>The sent message</returns>
        public static ChangeAudioSourceParametersMessage SendToAll(string soundSpawnToken, AudioSourceParameters audioSourceParameters)
        {
            ChangeAudioSourceParametersMessage msg = new ChangeAudioSourceParametersMessage
            {
                SoundSpawnToken       = soundSpawnToken,
                AudioSourceParameters = audioSourceParameters
            };

            msg.SendToAll();

            return(msg);
        }