Code cleanup

This commit is contained in:
Juha Heinanen
2025-01-30 00:01:03 +02:00
parent 2de42e0cde
commit 9932ceb624
2 changed files with 0 additions and 12 deletions
-5
View File
@@ -2,7 +2,6 @@
#include <pthread.h> #include <pthread.h>
#include <jni.h> #include <jni.h>
#include <aaudio/AAudio.h> #include <aaudio/AAudio.h>
#include <android/log.h>
#include <stdlib.h> #include <stdlib.h>
#include <re.h> #include <re.h>
#include <baresip.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); len = re_snprintf(event_buf, sizeof event_buf, "sndfile dump,%r", &data);
break; 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")) { if (!pl_strcmp(&module_event, "recorder sessionid")) {
len = re_snprintf(event_buf, sizeof event_buf, "recorder sessionid,%r", &data); len = re_snprintf(event_buf, sizeof event_buf, "recorder sessionid,%r", &data);
break; break;
@@ -626,12 +626,6 @@ class BaresipService: Service() {
return return
} }
if (ev[0] == "player sessionid") {
playerSessionId = ev[1].toInt()
Log.d(TAG, "got player sessionid $playerSessionId")
return
}
if (ev[0] == "recorder sessionid") { if (ev[0] == "recorder sessionid") {
recorderSessionId = ev[1].toInt() recorderSessionId = ev[1].toInt()
Log.d(TAG, "got recorder sessionid $recorderSessionId") Log.d(TAG, "got recorder sessionid $recorderSessionId")
@@ -1624,7 +1618,6 @@ class BaresipService: Service() {
private var agc: AutomaticGainControl? = null private var agc: AutomaticGainControl? = null
var webrtcAec = false var webrtcAec = false
private var btAdapter: BluetoothAdapter? = null private var btAdapter: BluetoothAdapter? = null
private var playerSessionId = 0
private var recorderSessionId = 0 private var recorderSessionId = 0
fun requestAudioFocus(ctx: Context): Boolean { fun requestAudioFocus(ctx: Context): Boolean {