ebu / ebu_adm_renderer

The EBU ADM Renderer, written in Python, is the reference implementation of EBU Tech 3388
https://ear.readthedocs.io
BSD 3-Clause Clear License
79 stars 13 forks source link

pack allocation fails when there's more than one pack reference and all tracks are silent #53

Closed tomjnixon closed 5 months ago

tomjnixon commented 2 years ago

This really doesn't matter as it isn't something anyone would realistically do, but:

def test_onlysilent():
    packs = [
        AllocationPack(p1, [AllocationChannel(c1, [p1]),
                            AllocationChannel(c2, [p1])]),
        AllocationPack(p2, [AllocationChannel(c1, [p2, p1]),
                            AllocationChannel(c2, [p2, p1]),
                            AllocationChannel(c3, [p2]),
                            AllocationChannel(c4, [p2]),
                            AllocationChannel(c5, [p2])]),
    ]

    assert len(list(allocate_packs(packs, [], [p1, p2], 7))) == 1  # fails, two solutions