(self, params)
| 538 | return self._compname |
| 539 | |
| 540 | def setparams(self, params): |
| 541 | nchannels, sampwidth, framerate, nframes, comptype, compname = params |
| 542 | if self._datawritten: |
| 543 | raise Error('cannot change parameters after starting to write') |
| 544 | self.setnchannels(nchannels) |
| 545 | self.setsampwidth(sampwidth) |
| 546 | self.setframerate(framerate) |
| 547 | self.setnframes(nframes) |
| 548 | self.setcomptype(comptype, compname) |
| 549 | |
| 550 | def getparams(self): |
| 551 | if not self._nchannels or not self._sampwidth or not self._framerate: |