Пример #1
0
def test_channel_layouts():
    # TODO: replace these numbers with values from groove.constants
    assert lib.groove_channel_layout_count(1) == 1
    assert lib.groove_channel_layout_count(3) == 2
    assert lib.groove_channel_layout_count(7) == 3
    assert lib.groove_channel_layout_default(1) == 4
    assert lib.groove_channel_layout_default(2) == 3
    assert lib.groove_channel_layout_default(3) == 11
Пример #2
0
 def count(cls, layout):
     """Count number of channels in a layout"""
     return lib.groove_channel_layout_count(layout)
Пример #3
0
 def count(cls, layout):
     """Count number of channels in a layout"""
     return lib.groove_channel_layout_count(layout)