更新UCD-API库及文档

This commit is contained in:
xinzhu.yin
2026-07-02 17:16:18 +08:00
parent a500751d85
commit 9fa811a9eb
290 changed files with 9558 additions and 2306 deletions

View File

@@ -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)