News for hackers. Stuff that matters.
Re:Show HN: TCP over sound on Android by brian-armstrong on Saturday October 22, 2016 @12:00AM (#12767112)
Well, the JNI means you get to run native code. For something like this, I think that's actually a requisite. My reasoning would be

a) This is real-time and could potentially be disrupted by GC pauses

b) JNI means you get to use OpenSL, the best and lowest latency sound engine on Android

c) This builds on top of libquiet, a C library, which itself builds on liquid dsp, another C library. Rewriting these in Java would be significantly more work than building the JNI wrapper. Especially true for liquid which is a mature library with lots of code

Re:Show HN: TCP over sound on Android by kuschku on Saturday October 22, 2016 @06:00AM (#12768068)
So why not JNA then?