Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/y/pySaleae-HEAD/analyzers/pcm_analyzer_gui/pcm2wav.py   pySaleae(Download)
        self.audio_output_devices = []
        for i in range(self.audio.get_device_count()):
            info = self.audio.get_device_info_by_index(i)
            if info['maxOutputChannels'] > 0:
                self.audio_output_devices.append(info)

src/a/l/alex-HEAD/alex/tests/test_pyaudio.py   alex(Download)
 
    for i in range(max_devs):
        devinfo = p.get_device_info_by_index(i)
 
        # print out device parameters
        def_index = p.get_default_input_device_info()['index']
        print "Default Input Device :", def_index
        devinfo = p.get_device_info_by_index(def_index)
        for k in devinfo.items():
            name, value = k
        def_index = p.get_default_output_device_info()['index']
        print "Default Output Device:", def_index
        devinfo = p.get_device_info_by_index(def_index)
        for k in devinfo.items():
            name, value = k