Set the filename for the audio stream on the server. Args: filename: The name of the file to set on the server. Returns: True if the filename is valid, False otherwise.
(self, filename)
| 111 | return device_index |
| 112 | |
| 113 | def setFilename(self, filename): |
| 114 | """ |
| 115 | Set the filename for the audio stream on the server. |
| 116 | Args: |
| 117 | filename: The name of the file to set on the server. |
| 118 | Returns: |
| 119 | True if the filename is valid, False otherwise. |
| 120 | """ |
| 121 | self.conn.send([self.SET_FILENAME, getcwd(), filename]) |
| 122 | filename_valid = self.conn.recv() |
| 123 | |
| 124 | return filename_valid |
| 125 | |
| 126 | def configureStream(self, channels, sample_rate, sample_bits): |
| 127 | """ |