Fix minor cut-n-paste error in AudioSinkFileThread

This commit is contained in:
vsonnier 2018-01-13 12:13:41 +01:00
parent 26deefd606
commit 4e6197c579

View File

@ -115,21 +115,16 @@ void AudioSinkFileThread::setAudioFileHandler(AudioFile * output) {
void AudioSinkFileThread::setSquelchOption(int squelchOptEnumValue) {
if (squelchOptEnumValue == AudioSinkFileThread::SQUELCH_RECORD_SILENCE) {
squelchOption = AudioSinkFileThread::SQUELCH_RECORD_SILENCE;
}
else if (squelchOptEnumValue == AudioSinkFileThread::SQUELCH_SKIP_SILENCE) {
squelchOption = AudioSinkFileThread::SQUELCH_SKIP_SILENCE;
}
else if (squelchOptEnumValue == AudioSinkFileThread::SQUELCH_RECORD_ALWAYS) {
squelchOption = AudioSinkFileThread::SQUELCH_RECORD_ALWAYS;
}
else {
squelchOption = AudioSinkFileThread::SQUELCH_SKIP_SILENCE;
squelchOption = AudioSinkFileThread::SQUELCH_RECORD_SILENCE;
}
}