mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-03-20 21:21:29 +00:00
start head tracking for the first 5 seconds to calibrate
This commit is contained in:
@@ -932,6 +932,8 @@ class AirPodsService : Service() {
|
|||||||
it.outputStream.write(Enums.REQUEST_NOTIFICATIONS.value)
|
it.outputStream.write(Enums.REQUEST_NOTIFICATIONS.value)
|
||||||
it.outputStream.flush()
|
it.outputStream.flush()
|
||||||
delay(200)
|
delay(200)
|
||||||
|
it.outputStream.write(Enums.START_HEAD_TRACKING.value)
|
||||||
|
it.outputStream.flush()
|
||||||
Handler(Looper.getMainLooper()).postDelayed({
|
Handler(Looper.getMainLooper()).postDelayed({
|
||||||
it.outputStream.write(Enums.HANDSHAKE.value)
|
it.outputStream.write(Enums.HANDSHAKE.value)
|
||||||
it.outputStream.flush()
|
it.outputStream.flush()
|
||||||
@@ -939,6 +941,8 @@ class AirPodsService : Service() {
|
|||||||
it.outputStream.flush()
|
it.outputStream.flush()
|
||||||
it.outputStream.write(Enums.REQUEST_NOTIFICATIONS.value)
|
it.outputStream.write(Enums.REQUEST_NOTIFICATIONS.value)
|
||||||
it.outputStream.flush()
|
it.outputStream.flush()
|
||||||
|
it.outputStream.write(Enums.STOP_HEAD_TRACKING.value)
|
||||||
|
it.outputStream.flush()
|
||||||
}, 5000)
|
}, 5000)
|
||||||
sendBroadcast(
|
sendBroadcast(
|
||||||
Intent(AirPodsNotifications.Companion.AIRPODS_CONNECTED)
|
Intent(AirPodsNotifications.Companion.AIRPODS_CONNECTED)
|
||||||
|
|||||||
Reference in New Issue
Block a user