Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Add new equalisers, stream_types, play_ctrl_states #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions temescal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
equalisers = ["Standard", "Bass", "Flat", "Boost", "Treble and Bass", "User",
"Music", "Cinema", "Night", "News", "Voice", "ia_sound",
"Adaptive Sound Control", "Movie", "Bass Blast", "Dolby Atmos",
"DTS Virtual X", "Bass Boost Plus", "DTS X"]
"DTS Virtual X", "Bass Boost Plus", "DTS X", "AI Sound Pro",
"Clear Voice", "Sports", "Game"]

STANDARD = 0
BASS = 1
Expand All @@ -43,10 +44,15 @@
DTS_VIRTUAL_X = 16
BASS_BOOST_PLUS = 17
DTS_X = 18
AI_SOUND_PRO = 19
CLEAR_VOICE = 20
SPORTS = 21
GAME = 22

functions = ["Wifi", "Bluetooth", "Portable", "Aux", "Optical", "CP", "HDMI",
functions = ["Wi-Fi", "Bluetooth", "Portable", "Aux", "Optical", "CP", "HDMI",
"ARC", "Spotify", "Optical2", "HDMI2", "HDMI3", "LG TV", "Mic",
"Chromecast", "Optical/HDMI ARC", "LG Optical", "FM", "USB", "USB2"]
"Chromecast", "Optical/HDMI ARC", "LG Optical", "FM", "USB", "USB2",
"E-ARC"]

WIFI = 0
BLUETOOTH = 1
Expand All @@ -68,6 +74,17 @@
FM = 17
USB = 18
USB_2 = 19
E_ARC = 20

stream_types = ["Unknown0", "Google Cast", "Unknown2", "Unknown3", "Spotify Connect"]

GOOGLE_CAST = 1
SPOTIFY_CONNECT = 4

play_control_states = ["Playing", "Stopped/Paused"]

PLAYING = 0
PAUSED = 1

class temescal:
def __init__(self, address, port=9741, callback=None, logger=None):
Expand Down