Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Audio output is inconsistent #88
The audio output is supposed to give a tone for each measured spectrum indicating the current overhead column density. It's a useful feature when the operator is not able to look at the screen. However, the current audio output is a bit confusing. I suggest changing to the following scheme:
referenced this issue
Jul 16, 2018
It appears not all audio devices support change in pitch: https://docs.microsoft.com/en-us/windows/desktop/multimedia/changing-pitch-and-playback-rate. My Windows 10 laptop does not support it. For now, I will do a check to see if pitch change is supported. If it is, I will set the pitch. If it is not, I will set the volume.
Added option for audio on spectrometer configuration dialog:
Made modifications to use same sound for negative values as the positive ones. Different sound is already in use for GPS error.
The PlaySound function used in the code can play a sound specified by the given file name, resource, or system event. Probably we would have to create wav files for each of those thresholds and install them on the user's PC somewhere for this to work. Will keep thinking on it but at the moment it is not looking very practical.