Tobii Pro SDK C API
gaze_output_frequencies.c
#include <stdio.h>
void gaze_output_frequencies_example(TobiiResearchEyeTracker* eyetracker) {
float initial_gaze_output_frequency;
TobiiResearchStatus status = tobii_research_get_gaze_output_frequency(eyetracker, &initial_gaze_output_frequency);
printf("The eye tracker's initial gaze output frequency is %f Hz with status %i.\n",
initial_gaze_output_frequency, status);
{
size_t i = 0;
status = tobii_research_get_all_gaze_output_frequencies(eyetracker, &frequencies);
for(; i < frequencies->frequency_count; i++) {
status = tobii_research_set_gaze_output_frequency(eyetracker, frequencies->frequencies[i]);
printf("Gaze output frequency set to %f Hz with status %i.\n", frequencies->frequencies[i], status);
}
tobii_research_set_gaze_output_frequency(eyetracker, initial_gaze_output_frequency);
printf("Gaze output frequency reset to %f Hz.", initial_gaze_output_frequency);
}
}