(self, sampwidth)
| 492 | return self._nchannels |
| 493 | |
| 494 | def setsampwidth(self, sampwidth): |
| 495 | if self._datawritten: |
| 496 | raise Error('cannot change parameters after starting to write') |
| 497 | if sampwidth < 1 or sampwidth > 4: |
| 498 | raise Error('bad sample width') |
| 499 | self._sampwidth = sampwidth |
| 500 | |
| 501 | def getsampwidth(self): |
| 502 | if not self._sampwidth: |