nightl
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user