Skip odd samples

legacy
sh123 2022-08-05 23:33:37 +03:00
rodzic 305fb8daee
commit ae0abed416
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -237,8 +237,10 @@ public class SoundModem implements Transport, Runnable {
}
} else {
int readCnt = _systemAudioRecorder.read(_recordAudioBuffer, 0, nin);
// TODO, read tail
if (readCnt != nin) {
Log.e(TAG, "" + readCnt + " != " + nin);
Log.w(TAG, "" + readCnt + " != " + nin);
continue;
}
//Log.v(TAG, "read samples: " + DebugTools.shortsToHex(_recordAudioBuffer));
}