def _get_default_layout(self, channels): """ Get default builtin channel layout for the given number of channels Parameters ---------- channels: (int) desired number of channels """ return soundio.channel_layout_get_default(channels)
def test_channel_layout_find_channel(self): layout = soundio.channel_layout_get_default(2) self.assertIsInstance(soundio.channel_layout_find_channel(layout, 0), int)
def test_channel_layout_detect_builtin(self): layout = soundio.channel_layout_get_default(2) self.assertTrue(soundio.channel_layout_detect_builtin(layout))
def test_channel_layout_equal(self): layout = soundio.channel_layout_get_default(2) self.assertTrue(soundio.channel_layout_equal(layout, layout))
def test_channel_layout_get_default(self): self.assertIsNotNone(soundio.channel_layout_get_default(2))