mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-29 06:10:52 +00:00
something...
This commit is contained in:
2
main.py
2
main.py
@@ -48,7 +48,7 @@ class ConsoleHandler(logging.StreamHandler):
|
||||
sys.stdout.write('Select ANC Mode: ')
|
||||
sys.stdout.flush()
|
||||
|
||||
def input_thread(connection):
|
||||
def input_thread(connection: Connection):
|
||||
while True:
|
||||
anc_mode = input()
|
||||
if anc_mode == '1':
|
||||
|
||||
@@ -13,7 +13,7 @@ class initL2CAP():
|
||||
earStatus = ""
|
||||
wasMusicPlayingInBoth = False
|
||||
wasMusicPlayingInSingle = False
|
||||
|
||||
|
||||
def pauseMusic(self):
|
||||
subprocess.call(("playerctl", "pause", "--ignore-player", "OnePlus_7"))
|
||||
|
||||
@@ -24,7 +24,7 @@ class initL2CAP():
|
||||
return subprocess.check_output(("playerctl", "status", "--ignore-player", "OnePlus_7")).decode("utf-8").strip()
|
||||
|
||||
# Change to MAC address of your AirPods
|
||||
|
||||
|
||||
connected = False
|
||||
|
||||
cmd_off = b"\x04\x00\x04\x00\x09\x00\x0d\x01\x00\x00\x00"
|
||||
@@ -320,4 +320,4 @@ mediaListener()
|
||||
# thread = threading.Thread(target=mediaListener)
|
||||
# thread.start()
|
||||
|
||||
# thread.stop()
|
||||
# thread.stop()
|
||||
|
||||
Reference in New Issue
Block a user