mirror of
https://github.com/ihmily/StreamCap.git
synced 2026-07-03 04:14:20 +08:00
14 lines
352 B
Python
14 lines
352 B
Python
class AudioFormat:
|
|
WAV = "WAV"
|
|
MP3 = "MP3"
|
|
WMA = "WMA"
|
|
M4A = "M4A"
|
|
AAC = "AAC"
|
|
|
|
@classmethod
|
|
def get_formats(cls):
|
|
"""Get all properties of the AudioFormat class"""
|
|
attributes = cls.__dict__
|
|
audio_formats = [value for name, value in attributes.items() if name.isupper()]
|
|
return audio_formats
|