ADM support

This commit is contained in:
Jamie Hardt
2022-11-23 14:23:42 -08:00
parent a063fffb41
commit 8f2fd69b00
3 changed files with 74 additions and 26 deletions

View File

@@ -17,8 +17,24 @@ class TestADMWave(TestCase):
self.assertEqual(len(adm.channel_uids), 14)
# def test_to_dict(self):
# info = wavinfo.WavInfoReader(self.protools_adm_wav)
# adm = info.adm
# dict = adm.to_dict()
def test_to_dict(self):
info = wavinfo.WavInfoReader(self.protools_adm_wav)
adm = info.adm
dict = adm.to_dict()
self.assertIsNotNone(dict)
def test_track_info(self):
info = wavinfo.WavInfoReader(self.protools_adm_wav)
adm = info.adm
t1 = adm.track_info(0)
self.assertTrue("channel_format_name" in t1.keys())
self.assertEqual("RoomCentricLeft", t1["channel_format_name"])
self.assertTrue("pack_format_name" in t1.keys())
self.assertEqual("AtmosCustomPackFormat1", t1["pack_format_name"])
t10 = adm.track_info(10)
self.assertTrue("content_name" in t10.keys())
self.assertEqual("Dialog", t10["content_name"])