(self, sampwidth)
| 644 | return self._nchannels |
| 645 | |
| 646 | def setsampwidth(self, sampwidth): |
| 647 | if self._nframeswritten: |
| 648 | raise Error('cannot change parameters after starting to write') |
| 649 | if sampwidth < 1 or sampwidth > 4: |
| 650 | raise Error('bad sample width') |
| 651 | self._sampwidth = sampwidth |
| 652 | |
| 653 | def getsampwidth(self): |
| 654 | if not self._sampwidth: |