Expose filtered Android call buffer diagnostics over JNI
This commit is contained in:
1 parent
f341d1db4b
commit
39dbfa7673
2 files changed
+24
No files matched your search
@@ -271,6 +271,8 @@ object NativeLib {
|
||||
fun callAudioProgress(callId: Long, epoch: Long, position: Long, nowUs: Long) = nativeCallAudioProgress(callId, epoch, position, nowUs)
|
||||
/** out: epoch, source_epoch, played, written, pts_us, valid, measured, held_back_us. */
|
||||
fun callAudioClock(callId: Long, nowUs: Long, out: LongArray): Boolean = nativeCallAudioClock(callId, nowUs, out)
|
||||
/** call=debug: encoded_ms, processing_ms, reserve_ms, spread_ms, pcm_samples, tempo_x100, underruns, waiting. */
|
||||
fun callAudioDiagnostics(callId: Long, out: LongArray): Boolean = nativeCallAudioDiagnostics(callId, out)
|
||||
fun callAudioStop() { nativeCallAudioStop() }
|
||||
|
||||
/* AEC (эхоподавление): включается по спикерфону; delay — измеренная задержка в кадрах. */
|
||||
@@ -404,6 +406,7 @@ object NativeLib {
|
||||
private external fun nativeCallAudioPull(callId: Long, out: ShortArray): Int
|
||||
private external fun nativeCallAudioProgress(callId: Long, epoch: Long, position: Long, nowUs: Long)
|
||||
private external fun nativeCallAudioClock(callId: Long, nowUs: Long, out: LongArray): Boolean
|
||||
private external fun nativeCallAudioDiagnostics(callId: Long, out: LongArray): Boolean
|
||||
private external fun nativeCallAudioStop()
|
||||
private external fun nativeCallAudioSetAec(enabled: Boolean)
|
||||
private external fun nativeCallAudioSetAecDelay(frames: Int)
|
||||
|
||||
Reference in new issue
Block a user