示例#1
0
    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)
示例#2
0
 def test_channel_layout_find_channel(self):
     layout = soundio.channel_layout_get_default(2)
     self.assertIsInstance(soundio.channel_layout_find_channel(layout, 0), int)
示例#3
0
 def test_channel_layout_detect_builtin(self):
     layout = soundio.channel_layout_get_default(2)
     self.assertTrue(soundio.channel_layout_detect_builtin(layout))
示例#4
0
 def test_channel_layout_equal(self):
     layout = soundio.channel_layout_get_default(2)
     self.assertTrue(soundio.channel_layout_equal(layout, layout))
示例#5
0
 def test_channel_layout_get_default(self):
     self.assertIsNotNone(soundio.channel_layout_get_default(2))