[chronojump/michrolab] Fixed no encoder capture sound since encoder cairo bars
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] Fixed no encoder capture sound since encoder cairo bars
- Date: Thu, 13 Oct 2022 13:09:22 +0000 (UTC)
commit 7e953c6e3fbbced6493795882b42bb3d06d049d9
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Oct 11 18:29:31 2022 +0200
Fixed no encoder capture sound since encoder cairo bars
src/gui/eventExecute.cs | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index df7a6a17f..5a9bfa1bb 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -3839,20 +3839,19 @@ public class CairoPaintBarplotPreEncoder : CairoPaintBarsPre
discarded = true;
}
- if( ! discarded && ( myColor == UtilGtk.ColorGood || (pegbe.mainVariableHigher != -1
&& mainVariableValue >= pegbe.mainVariableHigher) ) )
+ if ( ! discarded && ( myColor == UtilGtk.ColorGood || (pegbe.mainVariableHigher != -1
&& mainVariableValue >= pegbe.mainVariableHigher) ) )
{
colorPhase = UtilGtk.GREEN_PLOTS;
//play sound if value is high, volumeOn == true, is last value, capturing
-//TODO implement later, check how we pass this variables, as cairo should not play again n times the same
while capturing
-// if(preferences.volumeOn && count == data.Count -1 && capturing)
-// Util.PlaySound(Constants.SoundTypes.GOOD, preferences.volumeOn,
preferences.gstreamer);
+ if (pegbe.volumeOn && count == data.Count -1 && pegbe.capturing)
+ Util.PlaySound (Constants.SoundTypes.GOOD, preferences.volumeOn,
preferences.gstreamer);
}
- else if( ! discarded && ( myColor == UtilGtk.ColorBad || (pegbe.mainVariableLower !=
-1 && mainVariableValue <= pegbe.mainVariableLower) ) )
+ else if ( ! discarded && ( myColor == UtilGtk.ColorBad || (pegbe.mainVariableLower !=
-1 && mainVariableValue <= pegbe.mainVariableLower) ) )
{
colorPhase = UtilGtk.RED_PLOTS;
//play sound if value is low, volumeOn == true, is last value, capturing
- if(pegbe.volumeOn && count == 0 -1 && pegbe.capturing)
- Util.PlaySound(Constants.SoundTypes.BAD, pegbe.volumeOn,
pegbe.gstreamer);
+ if (pegbe.volumeOn && count == data.Count -1 && pegbe.capturing)
+ Util.PlaySound (Constants.SoundTypes.BAD, pegbe.volumeOn,
pegbe.gstreamer);
}
else if(myColor == UtilGtk.ColorGray)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]