Skip to content

Commit

Permalink
Added support for FW 2.2.4 and the new mute-audio setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashogstrom committed Feb 5, 2024
1 parent 0c61cc1 commit fe0de62
Show file tree
Hide file tree
Showing 6 changed files with 2,393 additions and 2 deletions.
9 changes: 9 additions & 0 deletions G3Simulator/G3Simulator.cs
Expand Up @@ -863,6 +863,7 @@ public Task<bool> RecordingInProgress()
public class SettingsSimulator : ISettings
{
private bool _gazeOverlay;
private bool _muteAudio;
private readonly SignalSimulator<string> _changed;
private int _gazeFrequency;

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

public IG3Observable<string> Changed => _changed;
public Task<bool> GazeOverlay => Task.FromResult(_gazeOverlay);
public Task<bool> MuteAudio => Task.FromResult(_muteAudio);
public Task<int> GazeFrequency => Task.FromResult(_gazeFrequency);
public Task<bool> SetGazeOverlay(bool value)
{
Expand All @@ -882,6 +884,13 @@ public Task<bool> SetGazeOverlay(bool value)
return Task.FromResult(true);
}

public Task<bool> SetMuteAudio(bool value)
{
_muteAudio = value;
_changed.Emit("mute-audio");
return Task.FromResult(true);
}

public Task<bool> SetGazeFrequency(int value)
{
_gazeFrequency = value;
Expand Down

0 comments on commit fe0de62

Please sign in to comment.