mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-22 06:12:12 +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.write('Select ANC Mode: ')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
def input_thread(connection):
|
def input_thread(connection: Connection):
|
||||||
while True:
|
while True:
|
||||||
anc_mode = input()
|
anc_mode = input()
|
||||||
if anc_mode == '1':
|
if anc_mode == '1':
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class initL2CAP():
|
|||||||
earStatus = ""
|
earStatus = ""
|
||||||
wasMusicPlayingInBoth = False
|
wasMusicPlayingInBoth = False
|
||||||
wasMusicPlayingInSingle = False
|
wasMusicPlayingInSingle = False
|
||||||
|
|
||||||
def pauseMusic(self):
|
def pauseMusic(self):
|
||||||
subprocess.call(("playerctl", "pause", "--ignore-player", "OnePlus_7"))
|
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()
|
return subprocess.check_output(("playerctl", "status", "--ignore-player", "OnePlus_7")).decode("utf-8").strip()
|
||||||
|
|
||||||
# Change to MAC address of your AirPods
|
# Change to MAC address of your AirPods
|
||||||
|
|
||||||
connected = False
|
connected = False
|
||||||
|
|
||||||
cmd_off = b"\x04\x00\x04\x00\x09\x00\x0d\x01\x00\x00\x00"
|
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 = threading.Thread(target=mediaListener)
|
||||||
# thread.start()
|
# thread.start()
|
||||||
|
|
||||||
# thread.stop()
|
# thread.stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user