From 0c418cecdd5e9d59477e236cb98801c9f7b53414 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sat, 10 Jun 2023 00:48:49 -0700 Subject: [PATCH] Removed magic number from DPP supplemental metadata Makes all the tests work but it's weird it's not being found --- wavinfo/wave_dbmd_reader.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/wavinfo/wave_dbmd_reader.py b/wavinfo/wave_dbmd_reader.py index 33423fc..ece7288 100644 --- a/wavinfo/wave_dbmd_reader.py +++ b/wavinfo/wave_dbmd_reader.py @@ -548,9 +548,9 @@ class DolbyAtmosSupplementalMetadata: h = BytesIO(data) magic = unpack(" List[DolbyAtmosSupplementalMetadata]: - # """ - # Every valid Dolby Atmos Supplemental metadata segment in the file. - # """ - # return [x[2] for x in self.segment_list \ - # if x[0] == SegmentType.DolbyAtmosSupplemental and x[1]] + def dolby_atmos_supplemental(self) -> List[DolbyAtmosSupplementalMetadata]: + """ + Every valid Dolby Atmos Supplemental metadata segment in the file. + """ + return [x[2] for x in self.segment_list \ + if x[0] == SegmentType.DolbyAtmosSupplemental and x[1]] def to_dict(self) -> dict: