(self, sampwidth)
| 468 | return self._nchannels |
| 469 | |
| 470 | def setsampwidth(self, sampwidth): |
| 471 | if self._datawritten: |
| 472 | raise Error('cannot change parameters after starting to write') |
| 473 | if sampwidth < 1 or sampwidth > 4: |
| 474 | raise Error('bad sample width') |
| 475 | self._sampwidth = sampwidth |
| 476 | |
| 477 | def getsampwidth(self): |
| 478 | if not self._sampwidth: |