Set the audio streaming device index (input/output). Args: device: The device index value to set on the server. Returns: Device index actually set.
(self, device)
| 98 | return current_mode |
| 99 | |
| 100 | def setDevice(self, device): |
| 101 | """ |
| 102 | Set the audio streaming device index (input/output). |
| 103 | Args: |
| 104 | device: The device index value to set on the server. |
| 105 | Returns: |
| 106 | Device index actually set. |
| 107 | """ |
| 108 | self.conn.send([self.SET_DEVICE, device]) |
| 109 | device_index = self.conn.recv() |
| 110 | |
| 111 | return device_index |
| 112 | |
| 113 | def setFilename(self, filename): |
| 114 | """ |