Bump
This commit is contained in:
@@ -62,9 +62,8 @@ class SoundRecorder(
|
||||
)
|
||||
audioRecord.startRecording()
|
||||
|
||||
|
||||
val thread = Thread {
|
||||
|
||||
var num_interactions = 0
|
||||
var last_tstamp: Long = Instant.now().toEpochMilli()
|
||||
while (true) {
|
||||
if (Thread.interrupted()) {
|
||||
@@ -81,7 +80,7 @@ class SoundRecorder(
|
||||
)
|
||||
|
||||
chunk_index += 1;
|
||||
if (last_tstamp in MessageSender.messageLog) {
|
||||
if ((last_tstamp in MessageSender.messageLog) || (num_interactions == 0)) {
|
||||
var tstamp: Long = Instant.now().toEpochMilli()
|
||||
val tstamp_buffer = ByteBuffer.allocate(Long.SIZE_BYTES)
|
||||
val tstamp_bytes = tstamp_buffer.putLong(tstamp).array()
|
||||
|
||||
Reference in New Issue
Block a user