[chronojump] EncoderRhythm play sound at each change of phase, including start/end rest
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] EncoderRhythm play sound at each change of phase, including start/end rest
- Date: Tue, 22 Feb 2022 20:08:41 +0000 (UTC)
commit fb8c01e24448ed37a5a4962066674eb38647b651
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Feb 22 21:07:18 2022 +0100
EncoderRhythm play sound at each change of phase, including start/end rest
src/gui/app1/encoder.cs | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index 07de41d83..d7f891c3c 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -7100,6 +7100,16 @@ public partial class ChronoJumpWindow
image_encoder_rhythm_rest.Visible = false;
encoder_pulsebar_rhythm_eccon.Text = "Waiting 1st phase";
return;
+ } else {
+ if(encoderRhythmExecute.CurrentPhase != encoderRhythmExecute.LastPhase)// &&
+ //uncomment to avoid sound at start of rest
+ //encoderRhythmExecute.CurrentPhase !=
EncoderRhythmExecute.Phases.RESTREP)
+ {
+ Util.PlaySound(Constants.SoundTypes.CAN_START,
preferences.volumeOn, preferences.gstreamer);
+
LogB.Information(encoderRhythmExecute.CurrentPhase.ToString());
+ }
+
+ encoderRhythmExecute.LastPhase = encoderRhythmExecute.CurrentPhase;
}
encoderRhythmExecute.CalculateFractionsAndText();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]