mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 08:50:41 +00:00
Made sampler udata field nullable
This commit is contained in:
@@ -93,9 +93,12 @@ class WavSmplReader:
|
||||
repetition_count=unpacked_loop[5]))
|
||||
|
||||
#: Sampler-specific user data.
|
||||
self.sampler_udata: bytes = smpl_data[
|
||||
header_size + loop_size * loop_count:
|
||||
header_size + loop_size * loop_count + sampler_udata_length]
|
||||
self.sampler_udata: bytes | None = None
|
||||
|
||||
if sampler_udata_length > 0:
|
||||
self.sampler_udata = smpl_data[
|
||||
header_size + loop_size * loop_count:
|
||||
header_size + loop_size * loop_count + sampler_udata_length]
|
||||
|
||||
def to_dict(self):
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user