|
|
|
@ -271,6 +271,8 @@ object NativeLib { |
|
|
|
fun callAudioProgress(callId: Long, epoch: Long, position: Long, nowUs: Long) = nativeCallAudioProgress(callId, epoch, position, nowUs) |
|
|
|
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. */ |
|
|
|
/** 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) |
|
|
|
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() } |
|
|
|
fun callAudioStop() { nativeCallAudioStop() } |
|
|
|
|
|
|
|
|
|
|
|
/* AEC (эхоподавление): включается по спикерфону; delay — измеренная задержка в кадрах. */ |
|
|
|
/* AEC (эхоподавление): включается по спикерфону; delay — измеренная задержка в кадрах. */ |
|
|
|
@ -404,6 +406,7 @@ object NativeLib { |
|
|
|
private external fun nativeCallAudioPull(callId: Long, out: ShortArray): Int |
|
|
|
private external fun nativeCallAudioPull(callId: Long, out: ShortArray): Int |
|
|
|
private external fun nativeCallAudioProgress(callId: Long, epoch: Long, position: Long, nowUs: Long) |
|
|
|
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 nativeCallAudioClock(callId: Long, nowUs: Long, out: LongArray): Boolean |
|
|
|
|
|
|
|
private external fun nativeCallAudioDiagnostics(callId: Long, out: LongArray): Boolean |
|
|
|
private external fun nativeCallAudioStop() |
|
|
|
private external fun nativeCallAudioStop() |
|
|
|
private external fun nativeCallAudioSetAec(enabled: Boolean) |
|
|
|
private external fun nativeCallAudioSetAec(enabled: Boolean) |
|
|
|
private external fun nativeCallAudioSetAecDelay(frames: Int) |
|
|
|
private external fun nativeCallAudioSetAecDelay(frames: Int) |
|
|
|
|