Skip to content

Commit fe0de62

Browse files
committed
Added support for FW 2.2.4 and the new mute-audio setting
1 parent 0c61cc1 commit fe0de62

6 files changed

Lines changed: 2393 additions & 2 deletions

File tree

G3Simulator/G3Simulator.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ public Task<bool> RecordingInProgress()
863863
public class SettingsSimulator : ISettings
864864
{
865865
private bool _gazeOverlay;
866+
private bool _muteAudio;
866867
private readonly SignalSimulator<string> _changed;
867868
private int _gazeFrequency;
868869

@@ -874,6 +875,7 @@ public SettingsSimulator(G3Simulator g3Simulator)
874875

875876
public IG3Observable<string> Changed => _changed;
876877
public Task<bool> GazeOverlay => Task.FromResult(_gazeOverlay);
878+
public Task<bool> MuteAudio => Task.FromResult(_muteAudio);
877879
public Task<int> GazeFrequency => Task.FromResult(_gazeFrequency);
878880
public Task<bool> SetGazeOverlay(bool value)
879881
{
@@ -882,6 +884,13 @@ public Task<bool> SetGazeOverlay(bool value)
882884
return Task.FromResult(true);
883885
}
884886

887+
public Task<bool> SetMuteAudio(bool value)
888+
{
889+
_muteAudio = value;
890+
_changed.Emit("mute-audio");
891+
return Task.FromResult(true);
892+
}
893+
885894
public Task<bool> SetGazeFrequency(int value)
886895
{
887896
_gazeFrequency = value;

0 commit comments

Comments
 (0)