mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 00:40:41 +00:00
Added a test case for sampler udata
And a little marker for base64
This commit is contained in:
BIN
tests/test_files/smpl/alarm_citizen_loop1_udata.wav
Normal file
BIN
tests/test_files/smpl/alarm_citizen_loop1_udata.wav
Normal file
Binary file not shown.
@@ -14,7 +14,7 @@ class MyJSONEncoder(json.JSONEncoder):
|
||||
if isinstance(o, Enum):
|
||||
return o._name_
|
||||
elif isinstance(o, bytes):
|
||||
return b64encode(o).decode('ascii')
|
||||
return 'base64:' + b64encode(o).decode('ascii')
|
||||
else:
|
||||
return super().default(o)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user