コード例 #1
0
ファイル: pysoundio.py プロジェクト: m13253/pysoundio
    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
ファイル: test_soundiox.py プロジェクト: m13253/pysoundio
 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
ファイル: test_soundiox.py プロジェクト: m13253/pysoundio
 def test_channel_layout_detect_builtin(self):
     layout = soundio.channel_layout_get_default(2)
     self.assertTrue(soundio.channel_layout_detect_builtin(layout))
コード例 #4
0
ファイル: test_soundiox.py プロジェクト: m13253/pysoundio
 def test_channel_layout_equal(self):
     layout = soundio.channel_layout_get_default(2)
     self.assertTrue(soundio.channel_layout_equal(layout, layout))
コード例 #5
0
ファイル: test_soundiox.py プロジェクト: m13253/pysoundio
 def test_channel_layout_get_default(self):
     self.assertIsNotNone(soundio.channel_layout_get_default(2))