Code cleanup

This commit is contained in:
Juha Heinanen
2025-01-29 23:58:27 +02:00
parent 2de42e0cde
commit 9932ceb624
2 changed files with 0 additions and 12 deletions

View File

@ -2,7 +2,6 @@
#include <pthread.h>
#include <jni.h>
#include <aaudio/AAudio.h>
#include <android/log.h>
#include <stdlib.h>
#include <re.h>
#include <baresip.h>
@ -247,10 +246,6 @@ static void event_handler(enum ua_event ev, struct bevent *event, void *arg)
len = re_snprintf(event_buf, sizeof event_buf, "sndfile dump,%r", &data);
break;
}
if (!pl_strcmp(&module_event, "player: sessionid")) {
len = re_snprintf(event_buf, sizeof event_buf, "player sessionid,%r", &data);
break;
}
if (!pl_strcmp(&module_event, "recorder sessionid")) {
len = re_snprintf(event_buf, sizeof event_buf, "recorder sessionid,%r", &data);
break;

View File

@ -626,12 +626,6 @@ class BaresipService: Service() {
return
}
if (ev[0] == "player sessionid") {
playerSessionId = ev[1].toInt()
Log.d(TAG, "got player sessionid $playerSessionId")
return
}
if (ev[0] == "recorder sessionid") {
recorderSessionId = ev[1].toInt()
Log.d(TAG, "got recorder sessionid $recorderSessionId")
@ -1624,7 +1618,6 @@ class BaresipService: Service() {
private var agc: AutomaticGainControl? = null
var webrtcAec = false
private var btAdapter: BluetoothAdapter? = null
private var playerSessionId = 0
private var recorderSessionId = 0
fun requestAudioFocus(ctx: Context): Boolean {