/// <summary> /// detiene un sonido de environment /// </summary> /// <param name="condition"></param> public void stopEnvironmentSound(EnvironmentConditions condition) { try { this.EnvironmentSounds[condition].stop(); } catch (Exception e) { Console.WriteLine("Error deteniendo sonido ambiente " + condition.ToString()); Console.WriteLine(e.ToString()); } }
/// <summary> /// comienza a reproducir un sonido de environment infinitamente /// </summary> /// <param name="condition"></param> public void startEnvironmentSound(EnvironmentConditions condition) { try { this.EnvironmentSounds[condition].play(true); } catch (Exception e) { Console.WriteLine("Error reproduciendo sonido ambiente " + condition.ToString()); Console.WriteLine(e.ToString()); } }
static void EnvironmentConditions_Start_Post(EnvironmentConditions __instance) => TryUpdateTemperatureData();