This commit is contained in:
2024-10-17 00:20:22 +02:00
parent a082058ce2
commit fe1ed57758
10 changed files with 91 additions and 60 deletions

View File

@@ -13,7 +13,7 @@ class AudioLayout(Enum):
LAYOUT_UNDEFINED = {"layout": "undefined", "index": 0}
def layout(self):
def label(self):
"""Returns the layout as string"""
return self.value['layout']
@@ -21,6 +21,12 @@ class AudioLayout(Enum):
"""Returns the layout as string"""
return self.value['layout']
@staticmethod
def fromIndex(index : int):
try:
return [a for a in AudioLayout if a.index() == int(index)][0]
except:
return AudioLayout.LAYOUT_UNDEFINED
def identify(self, streamObj):