-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from BoysTownorg/ubuntu-refactoring
Ubuntu refactoring
- Loading branch information
Showing
54 changed files
with
950 additions
and
910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
lib/core/include/av-speech-in-noise/core/AudioRecording.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef AV_SPEECH_IN_NOISE_LIB_CORE_INCLUDE_AVSPEECHINNOISE_CORE_AUDIORECORDINGHPP_ | ||
#define AV_SPEECH_IN_NOISE_LIB_CORE_INCLUDE_AVSPEECHINNOISE_CORE_AUDIORECORDINGHPP_ | ||
|
||
#include "IRecognitionTestModel.hpp" | ||
#include "IOutputFile.hpp" | ||
|
||
#include <av-speech-in-noise/Interface.hpp> | ||
|
||
#include <string> | ||
|
||
namespace av_speech_in_noise { | ||
class AudioRecorder { | ||
public: | ||
AV_SPEECH_IN_NOISE_INTERFACE_SPECIAL_MEMBER_FUNCTIONS(AudioRecorder); | ||
virtual void initialize(const LocalUrl &) = 0; | ||
virtual void start() = 0; | ||
virtual void stop() = 0; | ||
}; | ||
|
||
class AudioRecording : public RunningATest::Observer { | ||
public: | ||
AudioRecording(AudioRecorder &, OutputFile &); | ||
void notifyThatNewTestIsReady(std::string_view session) override; | ||
void notifyThatTrialWillBegin(int trialNumber) override; | ||
void notifyThatTargetWillPlayAt(const PlayerTimeWithDelay &) override; | ||
void notifyThatStimulusHasEnded() override; | ||
void notifyThatSubjectHasResponded() override; | ||
|
||
private: | ||
std::string session; | ||
AudioRecorder &audioRecorder; | ||
OutputFile &outputFile; | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef AV_SPEECH_IN_NOISE_LIB_CORE_INCLUDE_AVSPEECHINNOISE_CORE_EYETRACKINGHPP_ | ||
#define AV_SPEECH_IN_NOISE_LIB_CORE_INCLUDE_AVSPEECHINNOISE_CORE_EYETRACKINGHPP_ | ||
|
||
#include "IMaskerPlayer.hpp" | ||
#include "IOutputFile.hpp" | ||
#include "IRecognitionTestModel.hpp" | ||
#include "ITargetPlayer.hpp" | ||
|
||
#include <av-speech-in-noise/Interface.hpp> | ||
#include <av-speech-in-noise/Model.hpp> | ||
|
||
namespace av_speech_in_noise { | ||
class EyeTracker : public Writable { | ||
public: | ||
virtual void allocateRecordingTimeSeconds(double) = 0; | ||
virtual void start() = 0; | ||
virtual void stop() = 0; | ||
virtual auto gazeSamples() -> BinocularGazeSamples = 0; | ||
virtual auto currentSystemTime() -> EyeTrackerSystemTime = 0; | ||
}; | ||
|
||
class EyeTracking : public RunningATest::Observer { | ||
public: | ||
EyeTracking(EyeTracker &, MaskerPlayer &, TargetPlayer &, OutputFile &); | ||
void notifyThatNewTestIsReady(std::string_view session) override; | ||
void notifyThatTrialWillBegin(int trialNumber) override; | ||
void notifyThatTargetWillPlayAt(const PlayerTimeWithDelay &) override; | ||
void notifyThatStimulusHasEnded() override; | ||
void notifyThatSubjectHasResponded() override; | ||
|
||
private: | ||
EyeTrackerTargetPlayerSynchronization | ||
lastEyeTrackerTargetPlayerSynchronization{}; | ||
TargetStartTime lastTargetStartTime{}; | ||
EyeTracker &eyeTracker; | ||
MaskerPlayer &maskerPlayer; | ||
TargetPlayer &targetPlayer; | ||
OutputFile &outputFile; | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 19 additions & 7 deletions
26
lib/core/include/av-speech-in-noise/core/IRecognitionTestModel.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.