INNER CODE UNIT · Java

buf

rom1v/sndcpy · app/src/main/java/com/rom1v/sndcpy/RecordService.java:169

                    byte[] buf = new byte[SAMPLE_RATE * CHANNELS * BUFFER_MS / 1000];
                    while (true) {
                        int r = recorder.read(buf, 0, buf.length);
                        socket.getOutputStream().write(buf, 0, r);
                    }
                } catch (IOException e) {
                    // ignore
                } finally {
                    recorder.stop();
                    stopSelf();
                }
            }
        });
        recorderThread.start();
    }

    private boolean isRunning() {
        return recorderThread != null;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…