更新UCD-API库及文档
This commit is contained in:
@@ -19,6 +19,7 @@ class AudioFormat(IntEnum):
|
||||
- PCMAudio.
|
||||
"""
|
||||
Unknown = -1
|
||||
Compressed = 0x0
|
||||
L_PCM = 0xFFFF
|
||||
|
||||
|
||||
@@ -218,7 +219,7 @@ class AudioFrameData:
|
||||
Args:
|
||||
sample_format (int) - must be more than 0
|
||||
"""
|
||||
if sample_format <= 0:
|
||||
if sample_format < 0:
|
||||
raise ValueError(f"Sample format must be more than 0.")
|
||||
self.__sample_format = AudioFormat(sample_format)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user